You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix autoload of WebDriver::Remote::Bridge::COMMANDS
COMMANDS is defined on WebDriver::Remote::Bridge, but is defined as an
autoload on WebDriver::Remote. Since it's used in
WebDriver::Remote::Bridge#commands (with all the namespaces nested),
Ruby will first look for the constant in WebDriver::Remote::Bridge, then
WebDriver::Remote, where it finds the autoload. It requires the file,
which defines WebDriver::Remote::Bridge::COMMANDS. Then Ruby emits a
warning, because it expected selenium/webdriver/remote/commands to
define WebDriver::Remote::COMMANDS, since that's what the autoload
declares. After that, the constant can be resolved so it still works.
This properly declares the constant as autoloaded under
WebDriver::Remote::Bridge.
0 commit comments