Module: Selenium::WebDriver
Constant Summary
-
VERSION =
# File 'rb/lib/selenium/webdriver/version.rb', line 22'4.27.0.nightly'
Class Method Summary
-
.for(browser) ⇒ Driver
Create a new
Driver
instance with the correct bridge for the given browser. -
.logger(**opts) ⇒ Logger
Returns logger instance that can be used across the whole
::Selenium
. - .root Internal use only Internal use only
Class Method Details
Create a new WebDriver::Driver
instance with the correct bridge for the given browser
One special argument is not passed on to the bridges, :listener
. You can pass a listener for this option to get notified of WebDriver
events. The passed object must respond to #call
or implement the methods from AbstractEventListener.
# File 'rb/lib/selenium/webdriver.rb', line 88
def self.for(*args) WebDriver::Driver.for(*args) end
.logger(**opts) ⇒ Logger
Returns logger instance that can be used across the whole ::Selenium
.
.root
This method is for internal use only.
[ GitHub ]
# File 'rb/lib/selenium/webdriver.rb', line 51
def self.root @root ||= File. ('..', __dir__.to_s) end