Module: Selenium::DevTools
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Defined in: | rb/lib/selenium/devtools.rb, rb/lib/selenium/devtools/version.rb, rb/lib/selenium/devtools/support/cdp_client_generator.rb |
Constant Summary
-
VERSION =
# File 'rb/lib/selenium/devtools/version.rb', line 22'0.130.0'
Class Attribute Summary
- .version rw
Class Method Summary
- .load_version
- .load_old_version(version) private
-
.load_older_version
private
Try to load up to 2 versions back.
Class Attribute Details
.version (rw)
[ GitHub ]# File 'rb/lib/selenium/devtools.rb', line 23
attr_accessor :version
Class Method Details
.load_old_version(version) (private)
[ GitHub ].load_older_version (private)
Try to load up to 2 versions back
# File 'rb/lib/selenium/devtools.rb', line 36
def load_older_version load_old_version(@version - 1) rescue LoadError begin load_old_version(@version - 2) rescue LoadError raise WebDriver::Error::WebDriverError, 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem' end end
.load_version
[ GitHub ]# File 'rb/lib/selenium/devtools.rb', line 25
def load_version require "selenium/devtools/v#{@version}" rescue LoadError WebDriver.logger.warn "Could not load selenium-devtools v#{@version}. Trying older versions.", id: :devtools load_older_version end