コード例 #1
0
 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)
コード例 #2
0
    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)
コード例 #3
0
 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)
コード例 #4
0
 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)
コード例 #5
0
ファイル: SendRequest_Test.py プロジェクト: jcald/Selenium
 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)
コード例 #6
0
 def test_Validation(self):
     contact_page_obj = ContactPage(self.driver)
     contact_page_obj.validation_check()
コード例 #7
0
 def test_SendRequestTest(self):
     contact_page_obj = ContactPage(self.driver)
     contact_page_obj.submit_request()
コード例 #8
0
 def test_Validation(self):
     contact_page_obj = ContactPage(self.driver)
     contact_page_obj.validation_check()
コード例 #9
0
 def test_SendRequestTest(self):
     contact_page_obj = ContactPage(self.driver)
     contact_page_obj.submit_request()