def test_type_case(self):
     '''图片上传类型'''
     comp = FileUploadPage(self.driver)
     name = '图片上传类型'
     compname = '图片上传_名称'
     self.scroll_to('0')
     a = comp.getcomp(compname)
     type = a.get_attribute("fieldtype")
     self.assertEqual(type, "ImageUploadField", msg=name + '检验不通过')
Esempio n. 2
0
 def test_type_case(self):
     '''文件上传类型'''
     print(os.getcwd())
     comp = FileUploadPage(self.driver)
     name = '文件上传类型'
     compname = '文件上传_名称'
     self.scroll_to('0')
     a = comp.getcomp(compname)
     type = a.get_attribute("fieldtype")
     self.assertEqual(type, "AttachmentUploadField", msg=name + '检验不通过')