MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / load_older_version

Method load_older_version

rb/lib/selenium/devtools.rb:36–45  ·  view source on GitHub ↗

Try to load up to 2 versions back

Source from the content-addressed store, hash-verified

34
35 # Try to load up to 2 versions back
36 def load_older_version
37 load_old_version(@version - 1)
38 rescue LoadError
39 begin
40 load_old_version(@version - 2)
41 rescue LoadError
42 raise WebDriver::Error::WebDriverError,
43 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem'
44 end
45 end
46
47 def load_old_version(version)
48 require "selenium/devtools/v#{version}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected