webdriver.safari.webdriver

Module Contents

Classes

WebDriver(self,port=0,executable_path=”/usr/bin/safaridriver”,desired_capabilities=None,quiet=False) Controls the SafariDriver and allows you to drive the browser.
class WebDriver(port=0, executable_path="/usr/bin/safaridriver", desired_capabilities=None, quiet=False)

Controls the SafariDriver and allows you to drive the browser.

__init__(port=0, executable_path="/usr/bin/safaridriver", desired_capabilities=None, quiet=False)

Creates a new instance of the Safari driver.

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

Args:
  • 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 Safari switches).
  • quiet - set to True to suppress stdout and stderr of the driver
quit()

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