def test_selenium_failed(self):
     browser = SeleniumFactory().create()
     browser.open("http://www.amazon.com")
     assert "Amazon.com" in browser.get_title()
     browser.job_failed()
     data = self.retrieve_job_details(browser)
     assert not data['passed']
     browser.stop()
예제 #2
0
 def test_selenium_failed(self):
     browser = SeleniumFactory().create()
     browser.open("http://www.amazon.com")
     assert "Amazon.com" in browser.get_title()
     browser.job_failed()
     data = self.retrieve_job_details(browser)
     assert not data['passed']
     browser.stop()
    def test_webdriver_failed(self):

        browser = SeleniumFactory().createWebDriver()
        browser.get("http://amazon.com")
        assert "Amazon.com" in browser.title
        browser.job_failed()
        data = self.retrieve_job_details(browser)
        assert not data['passed']
        browser.quit()
예제 #4
0
    def test_webdriver_failed(self):

        browser = SeleniumFactory().createWebDriver()
        browser.get("http://amazon.com")
        assert "Amazon.com" in browser.title
        browser.job_failed()
        data = self.retrieve_job_details(browser)
        assert not data['passed']
        browser.quit()