webdriver.firefox.firefox_binary

Module Contents

Classes

FirefoxBinary(self,firefox_path=None,log_file=None)
class FirefoxBinary(firefox_path=None, log_file=None)
__init__(firefox_path=None, log_file=None)

Creates a new instance of Firefox binary.

Args:
  • firefox_path - Path to the Firefox executable. By default, it will be detected from the standard locations.
  • log_file - A file object to redirect the firefox process output to. It can be sys.stdout.
    Please note that with parallel run the output won’t be synchronous. By default, it will be redirected to /dev/null.
add_command_line_options(*args)
launch_browser(profile, timeout=30)

Launches the browser for the given profile name. It is assumed the profile already exists.

kill()

Kill the browser.

This is useful when the browser is stuck.

_start_from_profile_path(path)
_wait_until_connectable(timeout=30)

Blocks until the extension is connectable in the firefox.

_find_exe_in_registry()
_get_firefox_start_cmd()

Return the command to start firefox.

_default_windows_location()
_extract_and_check(profile, no_focus_so_name, x86, amd64)
which(fname)

Returns the fully qualified path by searching Path of the given name