Example #1
0
 def test_method_typetext(self, control_config, clear):
     """Testcase: test_method_typetext_cleartrue"""
     text_to_type = 'test'
     ctl_config = self.txt_username.copy()
     ctl_config.update(control_config)
     control = ControlBase(self.bot, **ctl_config)
     control.type_text(text_to_type, clear=clear)
     ASSERT.equals(control.text, text_to_type)
     ASSERT.equals(control.get_attr_value('value'), text_to_type)
Example #2
0
 def test_method_getattrvalue(self):
     """Testcase: test_method_getattrvalue"""
     cfg_form = self.form_login.copy()
     cfg_form.update({"on_instance_search": True})
     control = ControlBase(self.bot, **cfg_form)
     ASSERT.not_none(control.get_attr_value('id'))
Example #3
0
 def test_016_method_typetext_withmethod(self):
     """Testcase: test_016_method_typetext_withmethod"""
     control = ControlBase(self.bot, selector=self.ele_searcher)
     control.type_text('test')
     self.assertEqual(control.get_attr_value('value'), 'test')
Example #4
0
 def test_017_method_typetext_cleartrue(self):
     """Testcase: test_017_method_typetext_cleartrue"""
     control = ControlBase(self.bot, selector=self.ele_searcher)
     control.type_text('test', clear=True)
     self.assertEqual(control.get_attr_value('value'), 'test')
Example #5
0
 def test_012_method_getattrvalue(self):
     """Testcase: test_012_method_getattrvalue"""
     control = ControlBase(self.bot, selector=self.ele_searcher)
     self.assertEqual(control.get_attr_value('id'), 'docsQuery')