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
We are experiencing intermittent and seemingly random test failures locally and in CI where chromedriver responds with "invalid argument: 'handle' must be a string" to a call from Selenium to get window handles. Detailed logs are included below.
How can we reproduce the issue?
ruby: 3.1.4p223
capybara: 3.40.0
selenium-webdriver: 4.25.0
chromedriver: 130.0.6723.69
tests failures can happen in any of our feature tests somewhat randomly where one run fails but will pass when re-run. The failures are reported around lines like:
expect(page).to have_content("xyz", wait: 20)
The error is reported as:
1.1) Failure/Error: expect(page).to have_content("xyz", wait: 20)
NoMethodError:
undefined method `map' for 1:Integer ids.map { |id| Bridge.element_class.new self, element_id_from(id) } ^^^^ Did you mean? tap 1.2) Failure/Error: raise ex, cause: cause Selenium::WebDriver::Error::InvalidArgumentError: invalid argument: 'handle' must be a string (Session info: chrome=130.0.6723.70)I have included debug logs below and can try to recreate in a separate repo independent of our codebase if necessary.
@chughes, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
Hi, @chughes.
Please follow the issue template, we need more information to reproduce the issue.
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
Reply to this issue when all information is provided, thank you.
What happened?
We are experiencing intermittent and seemingly random test failures locally and in CI where chromedriver responds with "invalid argument: 'handle' must be a string" to a call from Selenium to get window handles. Detailed logs are included below.
How can we reproduce the issue?
Relevant log output
Operating System
macOS Sonoma 14.6.1
Selenium version
ruby: 3.1.4p223, selenium-webdriver: 4.25.0
What are the browser(s) and version(s) where you see this issue?
chrome 130.0.6723.70
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 130.0.6723.69
Are you using Selenium Grid?
na
The text was updated successfully, but these errors were encountered: