Ejemplo n.º 1
0
 def test_06_dropdown_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.dropdown_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Dropdown')]")
     time.sleep(1)
Ejemplo n.º 2
0
 def test_07_enableDisableElements_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.enabledisableelems_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Enabled and Disabled elements')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 3
0
 def test_05_dragDrop_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.draganddrop_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Drag the image into the box')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 4
0
 def test_15_completeWebForm_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.completewebform_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Complete Web Form')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 5
0
 def test_02_buttons_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.buttons_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//button[contains(text(),'Primary')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 6
0
 def test_01_autocomplete_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.autocomplete_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Autocomplete')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 7
0
 def test_14_switchWindow_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.switchwindow_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Switch Window')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 8
0
 def test_13_radioButtons_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.radiobutton_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Radio buttons')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 9
0
 def test_12_pageScroll_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.pagescroll_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Large page content')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 10
0
 def test_10_keyboardMouseInput_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.keymousepress_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'Keyboard and Mouse Input')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 11
0
 def test_08_fileUpload_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.fileupload_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//h1[contains(text(),'File upload')]")
     driver.back()
     time.sleep(1)
Ejemplo n.º 12
0
 def test_09_fileDownload_dropdown_click(self):
     driver = self.driver
     droppdown_elements = DropdownPage(driver)
     droppdown_elements.dropdown_button_click()
     time.sleep(1)
     droppdown_elements.filedownload_dropdown_button_click()
     time.sleep(1)
     assert driver.find_element_by_xpath(
         "//p[contains(text(),'You may have mistyped the address or the page may')]"
     )
     driver.back()
     time.sleep(1)