-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Selenium generic autoconfiguration #27921
Comments
It looks like we currently apply the Looking at @cdalexndr an you provide some more details about the kinds of drivers you want to be auto-configured and how they'll be used? Perhaps we need a Spring Framework issue to update MockMvc? |
Due to htmlunit rhino engine limitation, I use Firefox with gecko driver, plus
I also use mockito SpyBean/MockBean in my test, so I have to register spring's mockito test execution listeners: This will cause the default test execution listeners to not be registered, among them, the required |
Hmm, that's interesting. The Do you have a small sample that you can share that shows things not working as expected? |
I'm using TestNg so I extend AbstractTransactionalTestNGSpringContextTests, that uses Even if I use A possible workaround would be to use Note, same issue with |
I’m not that familiar with the TestNg integration, perhaps @sbrannen knows more. @cdalexndr could we still have a sample application that shows the problem? I think it would really help us. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Kinda offtopic, because the spring testng integration is designed this way so this is not a new issue. |
OK so the sample showcases the needs of putting these classes public because of the way TestNG works so we can continue the discussion on the PR. |
Currently, only HtmlUnit driver is supported, and the following utility classes are not public so they cannot be used/extended by user with other drivers: WebDriverScope, WebDriverContextCustomizerFactory, WebDriverTestExecutionListener
The rhino engine used by HtmlUnit has limitations (HtmlUnit/htmlunit#232 : mozilla/rhino#652, mozilla/rhino#678 ), and with the headless option already implemented by browsers, using other drivers is a good alternative.
Autoconfigurations should be made for other drivers, maybe with the help of WebDriveManager.
The text was updated successfully, but these errors were encountered: