def testBrowserProvisioningNoCaps(self): driver = webtest.new_webdriver_session() try: driver.get("about:") self.assertTrue(driver.current_url) finally: driver.quit()
def testBrowserProvisioningNoCaps(self): driver = webtest.new_webdriver_session() try: driver.get(webtest.http_address() + "/healthz") self.assertTrue(driver.current_url) finally: driver.quit()
def testBrowserProvisioningNoCaps(self): driver = webtest.new_webdriver_session() try: driver.get("about:") self.assertTrue(driver.current_url) finally: driver.quit()
def test(self): driver = webtest.new_webdriver_session() url = "http://localhost:%s%s" % (self.port, web_path) driver.get(url) wait.WebDriverWait(driver, 10).until( expected_conditions.title_contains("test")) title = driver.title if "failing test" in title or "passing test" not in title: self.fail(title)
def testBrowserProvisioningWithCaps(self): capabilities = { "acceptInsecureCerts": False, "pageLoadStrategy": "normal", } driver = webtest.new_webdriver_session(capabilities) try: driver.get(webtest.http_address() + "/healthz") self.assertTrue(driver.current_url) finally: driver.quit()
def testBrowserProvisioningWithCaps(self): capabilities = { "unexpectedAlertBehaviour": "dismiss", "elementScrollBehavior": 1, } driver = webtest.new_webdriver_session(capabilities) try: driver.get("about:") self.assertTrue(driver.current_url) finally: driver.quit()
def testBrowserProvisioningWithCaps(self): capabilities = { "unexpectedAlertBehaviour": "dismiss", "elementScrollBehavior": 1, } driver = webtest.new_webdriver_session(capabilities) try: driver.get("about:") self.assertTrue(driver.current_url) finally: driver.quit()
def test(self): driver = webtest.new_webdriver_session( capabilities={"loggingPrefs": { "browser": "ALL" }}) url = "http://localhost:%s%s" % (self.port, web_path) driver.get(url) browser_log_indicates_result = BrowserLogIndicatesResult() try: wait.WebDriverWait(driver, 10).until(browser_log_indicates_result) if not browser_log_indicates_result.passed: self.fail() finally: # Print log as an aid for debugging. log = browser_log_indicates_result.log + driver.get_log( "browser") self._print_log(log)
def setUp(self): self.driver = webtest.new_webdriver_session() self.driver.get("http://localhost:%s" % self.port) self.wait = wait.WebDriverWait(self.driver, 10)
def setUp(self): self.driver = webtest.new_webdriver_session() self.driver.get("http://localhost:8000") self.wait = wait.WebDriverWait(self.driver, 2)
def setUp(self): self.driver = webtest.new_webdriver_session() self.driver.get("http://localhost:%s" % self.port) self.wait = wait.WebDriverWait(self.driver, 2)