'org.openqa.selenium.remote.http.WebSocket$Listener onError' error while running the test cases in TestNG

637 views
Skip to first unread message

pune r

unread,
Sep 2, 2023, 2:54:10 AM9/2/23
to Selenium Users
Hi,
Is anyone facing the issue like below while running the test cases using TestNG

Sept 02, 2023 12:00:44 PM org.openqa.selenium.remote.http.WebSocket$Listener onError

WARNING: Connection reset

java.net.SocketException: Connection reset

at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:401)

at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:434)

at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:256)

at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)

at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:357)

at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)

at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)

at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)

at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)

at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)

at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

at java.base/java.lang.Thread.run(Thread.java:1623)



I am using TetNG version 7.1.7, Selenium java version 4.11.0 and WebDriver manager 5.4.1

I'm facing the issue even after adding Option.addArguments("--remote-allow-origin=*");



Capture.JPG
Reply all
Reply to author
Forward
0 new messages