예제 #1
0
 def test_method_setcssrule(self):
     """Testcase: test_method_setcssrule"""
     cfg_input = self.txt_username.copy()
     cfg_input.update({"on_instance_search": True})
     control = ControlBase(self.bot, **cfg_input)
     control.type_text('test')
     control.set_css_value('color', 'red')
     ASSERT.equals(control.get_css_value('color'), 'rgba(255, 0, 0, 1)')
예제 #2
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)
예제 #3
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')
예제 #4
0
 def test_019_method_setcssrule(self):
     """Testcase: test_019_method_setcssrule"""
     control = ControlBase(self.bot, selector=self.ele_searcher)
     control.type_text('test')
     control.set_css_value('color', 'red')
     self.assertEqual(control.get_css_value('color'), 'rgba(255, 0, 0, 1)')