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()
class TestSelenium1(unittest.TestCase): def setUp(self): self.browser = SeleniumFactory().create() def test_open(self): self.browser.open("http://amazon.com") assert "Amazon.com" in self.browser.get_title() def tearDown(self): self.browser.stop()
class testSelenium1(unittest.TestCase): def setUp(self): self.browser = SeleniumFactory().create() def test_open(self): self.browser.open("http://amazon.com") assert "Amazon.com" in self.browser.get_title() def tearDown(self): self.browser.stop()