abstract class Selenium::Driver
- Selenium::Driver
- Reference
- Object
Overview
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
Direct Known Subclasses
- Selenium::Chrome::Driver
- Selenium::Firefox::Driver
- Selenium::Remote::Driver
- Selenium::Safari::Driver
Defined in:
selenium/driver.crConstructors
Class Method Summary
-
.for(browser, **opts)
browser options: - :chrome (see
Selenium::Chrome::Driver
) - :firefox or :gecko (seeSelenium::Firefox::Driver
) - :safari (seeSelenium::Safari::Driver
) - :remote (seeSelenium::Remote::Driver
)
Instance Method Summary
- #command_handler : CommandHandler
- #create_session(args : Array(String)) : Session
- #create_session(capabilities, retry = true) : Session
- #http_client : HttpClient
- #service : Service | Nil
- #status : Status
- #stop
Constructor Detail
Class Method Detail
def self.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
)