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()