def test_SendRequestTest(self): contact_page_obj = ContactPage(self.driver) contact_page_obj.submit_request() # common_obj = Common(self.driver) # common_obj.wait_for_element_visibility(10, # "xpath", # "//input[contains(@name, 'first')]" # ) # common_obj.fill_out_field("xpath", # "//input[contains(@name, 'first')]", # "Paul" # ) # common_obj.fill_out_field("xpath", # "//input[contains(@name, 'last')]", # "Pierce" # ) # common_obj.fill_out_field("xpath", # "(//input[contains(@id, 'input')])[3]", # "*****@*****.**" # ) # common_obj.fill_out_field("xpath", "//textarea", "My comment") # common_obj.click(10, "xpath", "//span[.='Submit']") # common_obj.wait_for_element_visibility(10, # "xpath", # "//div[contains(text(), 'Thank you')]" # ) """ Just using time.sleep() so that you see the last webdriver action. I do not recommend using this in your tests. """ time.sleep(5)
def test_Validation(self): contact_page_obj = ContactPage(self.driver) contact_page_obj.validation_check() """ Just using time.sleep() so that you see the last webdriver action. I do not recommend using this in your tests. """ time.sleep(5)
def test_SendRequestTest(self): contact_page_obj = ContactPage(self.driver) contact_page_obj.submit_request() """ Just using time.sleep() so that you see the last webdriver action. I do not recommend using this in your tests. """ time.sleep(5)
def test_Validation(self): contact_page_obj = ContactPage(self.driver) contact_page_obj.validation_check()
def test_SendRequestTest(self): contact_page_obj = ContactPage(self.driver) contact_page_obj.submit_request()