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.PrestoDriver(executable_path=None, port=0, desired_capabilities={'platform': 'ANY', 'browserName': 'opera', 'version': '', 'javascriptEnabled': True})[source]

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

Creates a new instance of the Opera driver.

Starts the service and then creates new instance of Opera Driver.

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

    it assumes the executable is in the Environment Variable SELENIUM_SERVER_JAR

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

    a free port will be found.

  • desired_capabilities: Dictionary object with desired capabilities -

    may be used to provide various Opera switches.

quit()[source]

Closes the browser and shuts down the OperaDriver executable that is started when starting the OperaDriver

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
PRESTO = 1

This Page