示例#1
0
 def test_015_method_getelements_ascontrols(self):
     """Testcase: test_015_method_getelements_ascontrols"""
     page = PageBase(self.bot, self.url)
     elements = page.get_elements(self.selectors, as_controls=True)
     self.assertIsInstance(elements[1], ControlBase)
示例#2
0
 def test_014_method_getelements_aswebelements(self):
     """Testcase: test_014_method_getelements_aswebelements"""
     page = PageBase(self.bot, self.url)
     elements = page.get_elements(self.selectors)
     self.assertIsInstance(elements[1], WebElement)