def i_open_firefox(context): ensure_driver("firefox") firefox_capabilities = webdriver.DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = True context.browser = webdriver.Firefox(capabilities=firefox_capabilities, timeout=10)
def _open_local_firefox_with_marionette(germanium, original_function, *args, **kw): timeout = args[0] germaniumdrivers.ensure_driver("firefox") firefox_capabilities = dict(webdriver.DesiredCapabilities.FIREFOX) firefox_capabilities['marionette'] = True return webdriver.Firefox(capabilities=firefox_capabilities, timeout=timeout)
def i_open_firefox(context): ensure_driver("edge") context.browser = webdriver.Edge()
def i_open_firefox(context): ensure_driver("chrome") context.browser = webdriver.Chrome()
def i_open_firefox(context): ensure_driver("ie") context.browser = webdriver.Ie(timeout=10)
def _open_local_edge(timeout): germaniumdrivers.ensure_driver("edge") return webdriver.Edge()
def _open_local_ie(timeout): germaniumdrivers.ensure_driver("ie") capabilities = {"requireWindowFocus": True} return webdriver.Ie(timeout=timeout, capabilities=capabilities)
def _open_local_chrome(timeout): germaniumdrivers.ensure_driver("chrome") return webdriver.Chrome()