def test_selenium_success(self): browser = SeleniumFactory().create() browser.open("http://www.amazon.com") assert "Amazon.com" in browser.get_title() browser.job_passed() data = self.retrieve_job_details(browser) assert data['passed'] browser.stop()
def test_webdriver_success(self): browser = SeleniumFactory().createWebDriver() browser.get("http://amazon.com") assert "Amazon.com" in browser.title browser.job_passed() data = self.retrieve_job_details(browser) assert data['passed'] browser.quit()