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)')
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)')
def test_method_getcssvalue(self): """Testcase: test_method_getcssvalue""" cfg_input = self.txt_username.copy() cfg_input.update({"on_instance_search": True}) control = ControlBase(self.bot, **cfg_input) ASSERT.equals(control.get_css_value('color'), 'rgba(73, 80, 87, 1)')
def test_018_method_getcssvalue(self): """Testcase: test_018_method_getcssvalue""" control = ControlBase(self.bot, selector=self.ele_searcher) self.assertEqual(control.get_css_value('color'), 'rgba(136, 136, 136, 1)')