class

Selenium::Driver

Inherits Reference < Object

The Selenium::Driver is the root class for interacting with browsers

Using with Selenium::Service

If you passed in a Selenium::Service you MUST call Selenium::Driver#stop when you are done to stop the service or else the process it starts will continue running on your computer after the program ends

Constructors

new(base_url : String | Nil = nil, service : Service | Nil = nil)
Source

Class methods

for(browser, **opts)

browser options:

  • :chrome (see Selenium::Chrome::Driver)
  • :firefox or :gecko (see Selenium::Firefox::Driver)
  • :safari (see Selenium::Safari::Driver)
  • :remote (see Selenium::Remote::Driver)
Source

Instance methods

command_handler
Source
create_session(args : Array(String)) : Session
Source
create_session(capabilities, retry = true) : Session
Source
http_client
Source
service
Source
status
Source
stop
Source