selenium.webdriver.opera.webdriver

class selenium.webdriver.opera.webdriver.OperaDriver(executable_path=None, port=0, opera_options=None, service_args=None, desired_capabilities=None, service_log_path=None)[source]

Controls the new OperaDriver and allows you to drive the Opera browser based on Chromium.

Creates a new instance of the operadriver.

Starts the service and then creates new instance of operadriver.

Args :
  • executable_path - path to the executable. If the default is used

    it assumes the executable is in the $PATH

  • port - port you would like the service to run, if left as 0,

    a free port will be found.

  • desired_capabilities: Dictionary object with non-browser specific capabilities only, such as “proxy” or “loggingPref”.

  • chrome_options: this takes an instance of ChromeOptions

create_options()[source]
class selenium.webdriver.opera.webdriver.WebDriver(desired_capabilities=None, executable_path=None, port=0, service_log_path=None, service_args=None, opera_options=None)[source]
class ServiceType[source]
CHROMIUM = 2

This Page