Winium.Desktop: WiniumDriverService is not working
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
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 27 (5 by maintainers)
Facing the same issue, here i have attached the screenshot. kindly suggest me how to overcome this issue. Thanks in advance.
For what it’s worth… I find that
Hope this helps.