예제 #1
0
 def test_method_gettext_onscreenfalse(self):
     """Testcase: test_method_gettext_onscreenfalse"""
     msg_err = 'Failed at obtain text, open issue on Github'
     cfg_btn = self.btn_submit.copy()
     cfg_btn.update({"on_instance_search": True})
     control = ControlBase(self.bot, **cfg_btn)
     control.set_css_value('display', 'none')
     text = control.get_text(on_screen=False)
     ASSERT.greater(len(text), 0, msg=msg_err)
예제 #2
0
 def test_020_method_gettext_onscreenfalse(self):
     """Testcase: test_020_method_gettext_onscreenfalse"""
     control = ControlBase(self.bot, selector=self.ele_menu_common_errors)
     control
     control.set_css_value('display', 'none')
     text = control.get_text(on_screen=False)
     self.assert_greater(len(text),
                         0,
                         msg='Failed at obtain text, open issue on Github')
예제 #3
0
 def test_method_gettext(self):
     """Testcase: test_method_gettext"""
     cfg_btn = self.btn_submit.copy()
     cfg_btn.update({"on_instance_search": True})
     control = ControlBase(self.bot, **cfg_btn)
     ASSERT.equals(control.get_text(), 'Login')
예제 #4
0
 def test_009_method_gettext(self):
     """Testcase: test_009_method_gettext"""
     control = ControlBase(self.bot, selector=self.ele_menu_installation)
     self.assertEqual(control.get_text(), 'Installation')