The horizon.test.webdriver ModuleΒΆ

class horizon.test.webdriver.FirefoxBinary(firefox_path=None, log_file=None)[source]

Bases: selenium.webdriver.firefox.firefox_binary.FirefoxBinary

Workarounds selenium firefox issues.

There is race condition in the way firefox is spawned. The exact cause hasn’t been properly diagnosed yet but it’s around:

  • getting a free port from the OS with selenium.webdriver.common.utils

free_port(),

  • release the port immediately but record it in ff prefs so that ff can

listen on that port for the internal http server.

It has been observed that this leads to hanging processes for ‘firefox -silent’.

class horizon.test.webdriver.WebDriver(firefox_profile=None, firefox_binary=None, timeout=30, capabilities=None, proxy=None)[source]

Bases: selenium.webdriver.firefox.webdriver.WebDriver

Workarounds selenium firefox issues.

Previous topic

The horizon.test.settings Module

Next topic

The horizon.test.helpers Module

This Page