-
-
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
[🐛 Bug]: I am getting "WebDriverException: Unable to parse:" when using Selenium Select.selectByVisualText #10489
Comments
@mhmelshaaerdxpr, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Hi, @mhmelshaaerdxpr. 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. |
If you look at the command and stack trace, you'll see it isn't related to the "select by text" part; it is erroring in when trying to find the select element in the first place. I'd have to see the full debug information to know what was being sent back to know what isn't getting parsed. Whatever isn't getting parsed is coming from Chromedriver. Since the Selenium code looks looks correct, then chromedriver is not returning a correct response for some reason. Few options here.
|
Hi, @mhmelshaaerdxpr. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an issue with the ChromeDriver team. |
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. |
What happened?
I am having a test suite with a parallel setup to run test classes in parallel. The parallel setup is not an issue and it's 100% working fine. After upgrading from selenium
4.0.0-beta-3
to4.1.2
, I often get aWebDriverException: Unable to parse:
exception. Every time the exception triggers, the stack trace points to the same line of code that uses Selenium Select.selectByVisualText.I even tried to run the suite in the serial execution setup and it triggers the same exception with a different test class but referring to the same utility we have that uses the Selenium
Select.selectByVisualText
How can we reproduce the issue?
Use the Selenium Select.selectByVisualText to select an option from a drop-down select. I would suggest having a test suite of 10 or so doing the same actions so that you have a higher probability to trigger this exception. Or, maybe one class with a for loop that calls the
Select.selectByVisualText
method would be easier.I am not sure if this bug can be resolved without this Feature Proposal being implemented
Relevant log output
Operating System
Linux runner on GitHub Action.
Selenium version
4.1.2
What are the browser(s) and version(s) where you see this issue?
Chrome headless mode
What are the browser driver(s) and version(s) where you see this issue?
selenium/node-chrome:4.1.2-20220317
Are you using Selenium Grid?
selenium/hub:4.1.2-20220317
The text was updated successfully, but these errors were encountered: