-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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]: Using WebDriverListener with Augmenter throws ArgumentException #10233
Comments
@arsen-papoyan, 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! |
Thank you for sharing the details. The example shared is not complete in terms of how the web driver is created. I am sharing a simple example that just uses Selenium below. I hope that gives you a fair idea about how to proceed. By the error message shared, I see the problem arises when trying to augment the proxied instance return by the
I understand, using Augmenter with WebDriverListener instance should be straightforward and not related to the internals. I am investigating how that can be done since internally it relies on Java reflection dynamic proxies. |
@pujagani Thank you for your reply. |
Thank you for providing the feedback. I have made the fix to allow using the WebDriveDecorator with the Augmenter without the exception and double declaration. The example was just to demo how it can be done meanwhile. The way web driver instance is created depends on the user. The changes will be available as part of the next release. |
@pujagani Got you. Thanks! |
Hello @pujagani I have tried the one which you have mentioned above but it is still throwing error message, can you please help? My Code Operating System Selenium version What are the browser(s) and version(s) where you see this issue? Java Version |
@tkumar18 Thank you for providing the details. I have run the example below and it works on my local machine as expected.
How are you running the Java code? Are you building your own jar and running that jar to run the code snippet shared? |
@pujagani It works Locally, I am facing this problem with Remote , it is Browerstack in my case. I am getting the same error while running in Docker with selenium/hub 4 Raw Selenium Logs from BS Console |
@pujagani Are you able to replicate this issue from your end with Browserstack or Remote ? |
@tkumar18 I am unable to replicate this issue using the Grid or with Browserstack. Would appreciate it if you can help me understand how you are running the Java code. Is it from IDE or using a Java jar? A reproducible test project will make it easier to debug this since I am unable to reproduce it locally. To have a conversation to triage this, please reach out to us through our IRC/Slack/Matrix channels. |
Hello. |
@pujagani Could you please support? |
This fix is included in 4.1.2, are you using that version? |
It finally worked, thanks for your support. |
Thank you for checking with the latest version and confirming that! |
Hello @pujagani. |
Hey! It will be easy to track if could you file a new bug with the details. Appreciate it. That way we can keep track of related changes or examples. Thank you! |
Created |
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?
Getting error in case of RemoteWebDriver using WebDriverListener.
How can we reproduce the issue?
Relevant log output
Operating System
Local: macOS Monterey / Remote: Windows 10
Selenium version
JavaSE 14: version 16.0.1
What are the browser(s) and version(s) where you see this issue?
Chrome 96
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 96.0.4664.45
Are you using Selenium Grid?
Selenium Grid (selenium server 4.1.0)
The text was updated successfully, but these errors were encountered: