selenium.webdriver.opera.webdriver

class selenium.webdriver.opera.webdriver.WebDriver(executable_path=None, port=0, desired_capabilities={'platform': 'ANY', 'browserName': 'opera', 'version': '', 'javascriptEnabled': True})[source]

Controls the OperaDriver and allows you to drive the browser.

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 (Can 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

This Page