question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WiniumDriverService is not working

See original GitHub issue

I have following code: @Test public void setup () { DesktopOptions options = new DesktopOptions(); options.setApplicationPath(“C:\Windows\System32\notepad.exe”);

    WiniumDriverService service = new WiniumDriverService.Builder()
            .usingDriverExecutable(new File("C:\\Winium.Desktop.Driver.exe"))
            .usingAnyFreePort()
            .withVerbose(true)
            .withSilent(false)
            .buildDesktopService();
    WiniumDriver driver = new WiniumDriver(service, options);

When i am trying to run it using TestNG, getting below error. Please help. Starting Windows Desktop Driver on port 9999

17:07:46 [ERROR] SocketException occurred while trying to start listner: System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at Winium.Desktop.Driver.Listener.StartListening() 17:07:46 [FATAL] Failed to start driver: System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at Winium.Desktop.Driver.Listener.StartListening() at Winium.Desktop.Driver.Program.Main(String[] args)

Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at Winium.Desktop.Driver.Listener.StartListening() at Winium.Desktop.Driver.Program.Main(String[] args) May 28, 2016 5:08:05 PM org.openqa.selenium.os.UnixProcess checkForError SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: -532462766 (Exit value: -532462766) FAILED: setup

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shivakchepyalacommented, Aug 6, 2018

Facing the same issue, here i have attached the screenshot. kindly suggest me how to overcome this issue. Thanks in advance.

winium driver runtime error

1reaction
mikeliucccommented, Oct 14, 2016

For what it’s worth… I find that

  1. using “.usingAnyFreePort()” isn’t that great. For me I use “.usingPort(9999)” instead.
  2. the WiniumDriverService instance need to be started before the associated driver can use it. For example, service.start()
  3. service.stop() doesn’t work. 😦

Hope this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Winium Driver is not starting using Java
The reason you see the exception org.openqa.selenium.WebDriverException: Value cannot be null. Parameter name: executableFilePath.
Read more >
Use org.openqa.selenium.winium.WiniumDriverService. ...
Use the WiniumDriverService method in your next Winium project with LambdaTest Automation Testing Advisor. Learn how to set up and run automated tests...
Read more >
How to build a winium Driver service on Windows 10
The problem here is that, 'startDriver' is executing before setupEnvironment method and the variables service and options are not initialized.
Read more >
Developers - WiniumDriverService is not working -
Coming soon: A brand new website interface for an even better experience!
Read more >
How to build a winium Driver service on Windows 10?
The problem here is that, 'startDriver' is executing before setupEnvironment method and the variables service and options are not initialized.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found