Class: Selenium::WebDriver::Remote::BiDiBridge
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Bridge
|
|
Instance Chain:
|
|
Inherits: |
Selenium::WebDriver::Remote::Bridge
|
Defined in: | rb/lib/selenium/webdriver/remote/bidi_bridge.rb |
Constant Summary
Bridge
- Inherited
Class Attribute Summary
Bridge
- Inherited
Class Method Summary
Bridge
- Inherited
.add_command, | |
.new | Initializes the bridge with the given server URL. |
Instance Attribute Summary
- #bidi readonly
Bridge
- Inherited
#alert=, #capabilities, #file_detector, #http, | |
#timeouts | timeouts. |
#timeouts= |
Instance Method Summary
- #close
- #create_session(capabilities)
- #get(url)
- #go_back
- #go_forward
- #quit
- #refresh
- #browsing_context private
Bridge
- Inherited
::Selenium::WebDriver::Atoms
- Included
Constructor Details
This class inherits a constructor from Selenium::WebDriver::Remote::Bridge
Instance Attribute Details
#bidi (readonly)
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 24
attr_reader :bidi
Instance Method Details
#browsing_context (private)
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 60
def browsing_context @browsing_context ||= WebDriver::BiDi::BrowsingContext.new(self) end
#close
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 54
def close execute(:close_window).tap { |handles| bidi.close if handles.empty? } end
#create_session(capabilities)
[ GitHub ]#get(url)
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 32
def get(url) browsing_context.navigate(url) end
#go_back
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 36
def go_back browsing_context.traverse_history(-1) end
#go_forward
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 40
def go_forward browsing_context.traverse_history(1) end
#quit
[ GitHub ]#refresh
[ GitHub ]# File 'rb/lib/selenium/webdriver/remote/bidi_bridge.rb', line 44
def refresh browsing_context.reload end