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()
Ejemplo n.º 2
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()
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
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()