-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rb] - Minor - Specific Error type not initialized #8875
Comments
File location / method invocation
|
This is getting autoloaded only in the contexts in which it is needed You shouldn't be able to call it from outside those contexts, so we need to know more about the context in which you are seeing the error. Can you reference the other issues you are referring to? |
I think this is working as expected. In order to use the error, you would need to put the experimental js inside a context that allows the error to be used. I'd need to see a stack trace for your RubyMine error, but, obviously, you shouldn't be able to call a click on an element when the driver has been closed. :) It's probably a capybara issue. ;-) |
It wasn't Capybara's fault. The following code will reproduce it. # test.rb
require 'selenium-webdriver'
driver = Selenium::WebDriver.for :remote, url: "http://localhost:4444/", capabilities: {browser_name: 'chrome'}
driver.navigate.to "http://google.com" # docker-compose.yml
version: '3.4'
services:
selenium:
image: selenium/standalone-chrome:4.0.0-rc-1-prerelease-20210804
ports:
- "4444:4444" # Gemfile
source 'https://rubygems.org'
gem 'selenium-webdriver', '~> 4.0.0.beta4' Thanks. |
Yes, I was joking about it being a Capybara issue. Can you provide a stack trace for this? Not sure how it can get this error with the code you provided. |
I mentioned previously @titusfortner that if you generate a timeout and the connection has died then this error will be thrown |
Aha, the error is in a file in the remote directory, but not namespaced with Remote, so autoload doesn't work. Just switched it to require the file instead, it'll work in next release. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
This error is thrown in a few places. Primarily when the webdriver connection is timed out during debug phase or a few other areas (Such as using the new experimental JS - See other issue)
To Reproduce
Just try throw the error above. It will say it doesn't recognise it.
Expected behavior
The error exists
Test script or set of commands reproducing this issue
Environment
OS: Bionic 18.04
Browser: Chrome/Firefox in remote
Browser version: 83/79
Browser Driver version: Valid
Language Bindings version: Alpha6 Ruby
Selenium Grid version (if applicable): Alpha 6
The text was updated successfully, but these errors were encountered: