Пример #1
0
 def test_method_waittext(self, ctl_cfg):
     """Testcase: test_method_waittext"""
     self.setup_login_to_inputs()
     ctl_setup = ControlBase(self.bot, **self.btn_click_invisible)
     ctl_setup.click()
     ctl_setup.wait_visible(timeout=7)
     # end setup
     ctl = ControlBase(self.bot, **getattr(self, ctl_cfg[0]))
     ctl.reload()
     ASSERT.true(ctl.wait_text(ctl_cfg[1], timeout=7))
     ASSERT.equals(ctl.text, ctl_cfg[1])
Пример #2
0
 def test_method_waitvisible(self):
     """Testcase: test_method_waitvisible"""
     self.setup_login_to_inputs()
     ControlBase(self.bot, **self.btn_click_invisible).click()
     # end setup
     ctl = ControlBase(self.bot, **self.btn_click_visible)
     ctl_visible = ctl.wait_visible(timeout=7)
     ASSERT.is_instance(ctl_visible, ControlBase)
     ASSERT.is_instance(ctl_visible.element, WebElement)