Skip to content
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

HtmlUnitDriver needs to provide WebDriverInfo and DriverService service providers for Selenium 4 Grid #134

Open
sbabcoc opened this issue Aug 22, 2023 · 3 comments

Comments

@sbabcoc
Copy link

sbabcoc commented Aug 22, 2023

In order for Selenium 4 NodeOptions to resolve the "htmlunit" browser name to HtmlUnitDriver, it needs an implementation of the WebDriverInfo to provide the association. Without this service provider implementation, we get failures like the one shown in the attached Grid 4 server log.

org.openqa.selenium.grid.config.ConfigException: Unable to find matching driver for Capabilities {browserName: htmlunit, browserVersion: chrome, platformName: Windows 10}

grid-node-5.log

@rbri
Copy link
Collaborator

rbri commented Aug 23, 2023

Will have a look, i guess i can implement WebDriverInfo for the next release

@sbabcoc
Copy link
Author

sbabcoc commented Aug 25, 2023

We apparently also need an HtmlUnitDriverService, which extends org.openqa.selenium.remote.service.DriverService. This may be the more involved task, because it seems to require packaging up HtmlUnitDriver into a service that can launch and manage a separate process. With my own versions of these two classes, I've managed to launch and register an HtmlUnitDriver node in a local Grid 4 instance. I haven't tried to actually get a session yet, as the response I get back from a status request is malformed. I'll post further updates as the situation evolves.

@sbabcoc sbabcoc changed the title HtmlUnitDriver needs to provide a WebDriverInfo service provider for Selenium 4 Grid HtmlUnitDriver needs to provide a WebDriverInfo and DriverService service providers for Selenium 4 Grid Aug 25, 2023
@sbabcoc sbabcoc changed the title HtmlUnitDriver needs to provide a WebDriverInfo and DriverService service providers for Selenium 4 Grid HtmlUnitDriver needs to provide WebDriverInfo and DriverService service providers for Selenium 4 Grid Aug 25, 2023
@sbabcoc
Copy link
Author

sbabcoc commented Aug 28, 2023

I abandoned my attempt to stand up a Grid 4 node that provides HtmlUnit sessions. I need to examine the InMemorySession feature of Selenium 3 to determine the size and complexity of the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants