Class: Selenium::WebDriver::Chrome::Driver Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | Selenium::WebDriver::Chromium::Driver 
 | 
| Defined in: | rb/lib/selenium/webdriver/chrome/driver.rb | 
Overview
Driver implementation for ::Selenium::WebDriver::Chrome.
Constant Summary
::Selenium::WebDriver::SearchContext - Included
  
  ::Selenium::WebDriver::Chromium::Driver - Inherited
  
Class Method Summary
- .new(options: nil, service: nil, url: nil) ⇒ Driver constructor Internal use only
::Selenium::WebDriver::Driver - Inherited
Instance Attribute Summary
::Selenium::WebDriver::Driver - Inherited
Instance Method Summary
- #browser Internal use only
- #devtools_address private Internal use only
::Selenium::WebDriver::LocalDriver - Included
::Selenium::WebDriver::Driver - Inherited
| #[] | Get the first element matching the given selector. | 
| #action, #add_virtual_authenticator, | |
| #all | driver.all(class: ‘bar’) #=> [#<WebDriver::Element:0x1011c3b88, …]. | 
| #browser, #capabilities, | |
| #close | Close the current window, or the browser if no windows are left. | 
| #current_url | Get the URL of the current page. | 
| #execute_async_script | Execute an asynchronous piece of JavaScript in the context of the currently selected frame or window. | 
| #execute_script | Execute the given JavaScript. | 
| #first | driver.first(id: ‘foo’). | 
| #get | Opens the specified URL in the browser. | 
| #inspect, #manage, #navigate, #network, | |
| #page_source | Get the source of the current page. | 
| #quit | Quit the browser. | 
| #script, | |
| #status | information about whether a remote end is in a state in which it can create new sessions, and may include additional meta information. | 
| #switch_to, | |
| #title | Get the title of the current page. | 
| #window_handle | Get the current window handle. | 
| #window_handles | Get the window handles of open browser windows. | 
| #add_extensions, #create_bridge, #screenshot, #service_url, #ref | |
::Selenium::WebDriver::TakesScreenshot - Included
| #save_screenshot | Save a PNG screenshot of the viewport to the given path. | 
| #screenshot_as | Return a PNG screenshot in the given format as a string. | 
::Selenium::WebDriver::SearchContext - Included
| #find_element | Find the first element matching the given arguments. | 
| #find_elements | Find all elements matching the given arguments. | 
| #extract_args | |
Constructor Details
    .new(options: nil, service: nil, url: nil)  ⇒ Driver 
  
# File 'rb/lib/selenium/webdriver/chrome/driver.rb', line 33
def initialize(options: nil, service: nil, url: nil, **) caps, url = initialize_local_driver(, service, url) super(caps: caps, url: url, **) end
Instance Method Details
#browser
[ GitHub ]# File 'rb/lib/selenium/webdriver/chrome/driver.rb', line 38
def browser :chrome end
#devtools_address (private)
[ GitHub ]# File 'rb/lib/selenium/webdriver/chrome/driver.rb', line 44
def devtools_address "http://#{capabilities['goog:chromeOptions']['debuggerAddress']}" end