abstract class Selenium::Driver

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

Defined in:

selenium/driver.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(base_url : String | Nil = nil, service : Service | Nil = nil) #

[View source]

Class Method Detail

def self.for(browser, **opts) #

browser options:


[View source]

Instance Method Detail

def command_handler : CommandHandler #

[View source]
abstract def create_session(args : Array(String)) : Session #

[View source]
def create_session(capabilities, retry = true) : Session #

[View source]
def http_client : HttpClient #

[View source]
def service : Service | Nil #

[View source]
def status : Status #

[View source]
def stop #

[View source]