示例#1
0
 def test_set_value_nothing_changes(self, checkbox_setup, input_value):
     self.check_box.click()
     self.check_box.set_value(input_value)
     CommonActionsData.check_action(MSG_TRUE)
     self.check_box.click()
     self.check_box.set_value(input_value)
     CommonActionsData.check_action(MSG_FALSE)
示例#2
0
 def test_check_all(self, check_list_setup):
     self.check_list.check_all()
     CommonActionsData.check_action(FIRE_MSG, line_number=0)
     CommonActionsData.check_action("Wind: condition changed to true",
                                    line_number=1)
     CommonActionsData.check_action("Earth: condition changed to true",
                                    line_number=2)
     CommonActionsData.check_action(WATER_MSG, line_number=3)
     self.check_all_checked()
示例#3
0
 def test_check_2_string(self, check_list_setup):
     self.check_list.check("Water", "Fire")
     CommonActionsData.check_action(FIRE_MSG, line_number=0)
     CommonActionsData.check_action(WATER_MSG, line_number=1)
示例#4
0
 def test_check(self, check_list_setup, value):
     self.check_list.check(value)
     CommonActionsData.check_action(FIRE_MSG)
示例#5
0
 def test_select_index(self, dropdown_setup):
     dropdown_setup.select(4)
     CommonActionsData.check_action(MSG)
示例#6
0
 def test_multi_check(self, checkbox_setup):
     self.check_box.check()
     self.check_box.check()
     CommonActionsData.check_action(MSG_TRUE)
示例#7
0
 def test_check_single(self, checkbox_setup):
     self.check_box.check()
     CommonActionsData.check_action(MSG_TRUE)
示例#8
0
 def test_set_value(checkbox_setup, input_value, expected):
     if not expected:
         EpamJDISite.metals_colors_page.cb_water.click()
     EpamJDISite.metals_colors_page.cb_water.set_value(input_value)
     CommonActionsData.check_action("Water: condition changed to " +
                                    str(expected).lower())
示例#9
0
 def test_set_value_text(self):
     self.combo_box.set_value("Blue")
     CommonActionsData.loose_focus()
     CommonActionsData.check_action("Metals: value changed to Blue")
示例#10
0
 def test_select_enum(self):
     self.combo_box.select(Metals.GOLD)
     CommonActionsData.check_action("Metals: value changed to Gold")
示例#11
0
 def test_select_index(self):
     self.combo_box.select(3)
     CommonActionsData.check_action("Metals: value changed to Silver")
示例#12
0
 def test_select_string(self):
     self.combo_box.select("Gold")
     CommonActionsData.check_action("Metals: value changed to Gold")
示例#13
0
 def test_set_value(self, dropdown_setup):
     dropdown_setup.set_value("Blue")
     CommonActionsData.check_action(MSG)
示例#14
0
 def test_select_enum(self, dropdown_setup):
     dropdown_setup.select(Colors.BLUE)
     CommonActionsData.check_action(MSG)
示例#15
0
 def test_check_2_index(self, check_list_setup):
     self.check_list.check(1, 4)
     CommonActionsData.check_action(FIRE_MSG, line_number=0)
     CommonActionsData.check_action(WATER_MSG, line_number=1)
示例#16
0
 def test_check_2_enum(self, check_list_setup):
     self.check_list.check(Nature.WATER, Nature.FIRE)
     CommonActionsData.check_action(FIRE_MSG, line_number=0)
     CommonActionsData.check_action(WATER_MSG, line_number=1)
示例#17
0
 def test_select_string(self, selector_site, radio_buttons):
     radio_buttons.select("7")
     CommonActionsData.check_action(MSG)
示例#18
0
 def check_file_loaded(self, file_name):
     CommonActionsData.check_action('FileUpload: file "{0}" has been uploaded'.format(file_name))
     Assert.assert_contains(self.uploaded_file_name.get_text(), file_name)
示例#19
0
 def test_select_index(self, selector_site, radio_buttons):
     radio_buttons.select(4)
     CommonActionsData.check_action(MSG)
示例#20
0
 def test_select_enum(self, selector_site, radio_buttons):
     radio_buttons.select(Odds.SEVEN)
     CommonActionsData.check_action(MSG)
示例#21
0
 def test_set_value_text(self, selector_site, radio_buttons):
     radio_buttons.set_value("7")
     CommonActionsData.check_action(MSG)
示例#22
0
 def test_multi_uncheck(self, checkbox_setup):
     self.check_box.click()
     self.check_box.uncheck()
     self.check_box.uncheck()
     CommonActionsData.check_action(MSG_FALSE)
示例#23
0
 def test_set_value(self, check_list_setup):
     self.check_list.set_value("Fire")
     CommonActionsData.check_action(FIRE_MSG)
示例#24
0
 def test_click(self, checkbox_setup):
     self.check_box.click()
     CommonActionsData.check_action(MSG_TRUE)
     self.check_box.click()
     CommonActionsData.check_action(MSG_FALSE)
示例#25
0
 def test_select_string(self, dropdown_setup):
     dropdown_setup.select("Blue")
     CommonActionsData.check_action(MSG)