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()
def test_webdriver_failed(self): browser = SeleniumFactory().create_web_driver() 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()
class TestSelenium2(unittest.TestCase): def setUp(self): self.browser = SeleniumFactory().create_web_driver() def test_get(self): self.browser.get("http://amazon.com") assert "Amazon.com" in self.browser.title def tearDown(self): self.browser.quit()
class testSelenium2(unittest.TestCase): def setUp(self): self.browser = SeleniumFactory().createWebDriver() def test_get(self): self.browser.get("http://amazon.com") assert "Amazon.com" in self.browser.title def tearDown(self): self.browser.quit()