def test_method_waitblink(self): """Testcase: test_method_waitblink""" self.setup_login_to_inputs() ctl = ControlBase(self.bot, **self.btn_click_invisible) ctl.click() # end setup ctl_blink = ctl.wait_blink(timeout=7) ASSERT.is_instance(ctl_blink, ControlBase) ASSERT.is_instance(ctl_blink.element, WebElement)
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])
def test_method_click(self, retry): """Testcase: test_method_click""" ctl_config = self.txt_username.copy() control = ControlBase(self.bot, **ctl_config) control.click(retry=retry)