Try to load up to 2 versions back
| 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}" |
nothing calls this directly
no outgoing calls
no test coverage detected