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

Port is not correctly set in the Java WiniumDriverService #99

Open
mwopitz opened this issue Apr 26, 2019 · 1 comment
Open

Port is not correctly set in the Java WiniumDriverService #99

mwopitz opened this issue Apr 26, 2019 · 1 comment

Comments

@mwopitz
Copy link

mwopitz commented Apr 26, 2019

I'm using the Winium.WebDriver 0.1.0-1 Maven artifact.

When starting the WiniumDriverService with any port other than 9999, the service always times out while trying to connect to the webdriver process.

Here's what my setup looks like:

service = new WiniumDriverService.Builder()
	.usingPort(12345)
	.withVerbose(true)
	.buildDesktopService();
service.start();

The output is always:

Starting Windows Desktop Driver on port 9999

hh:mm:ss [DEBUG] Waiting for a connection...

org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...

Now, the root cause seems to be that the port isn't passed to the web driver executable as a command-line argument, when spawning the child process. So it will always be the default 9999.

I think the port argument must be set in WiniumDriverService.createArgs(); at least, that's how the ChromeDriverService seems to to it in ChromeDriverService.createArgs().

@nananand7
Copy link

Please find the freeport from your machine and lauch the driver on the free port and try. There is no need to open only on 9999. Winium will intiate the application on any immediate free port.

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