selenium.webdriver.firefox.firefox_binary

class selenium.webdriver.firefox.firefox_binary.FirefoxBinary(firefox_path=None, log_file=None)[source]

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.

NO_FOCUS_LIBRARY_NAME = 'x_ignore_nofocus.so'
add_command_line_options(*args)[source]
kill()[source]

Kill the browser.

This is useful when the browser is stuck.

launch_browser(profile, timeout=30)[source]

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

which(fname)[source]

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

This Page