-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[🐛 Bug]: Selenium BIDI network interception facing an issue with the "network.provideResponse" method #14443
Comments
@dineshkumar-kanniyammal, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Hey! The error message is indicating the correct problem. The command is not supported by the browser. BiDi is work in progress. Please refer to https://wpt.fyi/results/webdriver/tests/bidi/network/provide_response?label=master&label=stable&aligned to see what is supported in which version of BiDi. |
https://wpt.fyi/results/webdriver/tests/bidi/network/provide_response?label=master&label=stable&aligned - Status code is now supported is newer versions of Firefox. Please use that for your code to work. |
What happened?
Facing an error while modifying the incoming responses via network intercept
Caused by: org.openqa.selenium.bidi.BiDiException: {"type":"error","id":4,"error":"unsupported operation","message":""statusCode" not supported yet in network.provideResponse","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nUnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:848:5\nprovideResponse@chrome://remote/content/webdriver-bidi/modules/root/network.sys.mjs:965:13\nhandleCommand@chrome://remote/content/shared/messagehandler/MessageHandler.sys.mjs:255:33\nexecute@chrome://remote/content/shared/webdriver/Session.sys.mjs:390:32\nonPacket@chrome://remote/content/webdriver-bidi/WebDriverBiDiConnection.sys.mjs:204:37\nonMessage@chrome://remote/content/server/WebSocketTransport.sys.mjs:127:18\nhandleEvent@chrome://remote/content/server/WebSocketTransport.sys.mjs:109:14\n"}
Build info: version: '4.23.0', revision: '4df0a231af'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.6.1', java.version: '17.0.5'
Driver info: driver.version: unknown
at org.openqa.selenium.bidi.Connection.sendAndWait(Connection.java:178)
at org.openqa.selenium.bidi.BiDi.send(BiDi.java:51)
at org.openqa.selenium.bidi.module.Network.provideResponse(Network.java:137)
at firefoxAutomation.BidiFirefoxMocking.lambda$0(BidiFirefoxMocking.java:157)
at org.openqa.selenium.bidi.Connection.lambda$handleEventResponse$7(Connection.java:387)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1850)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at org.openqa.selenium.bidi.Connection.handleEventResponse(Connection.java:367)
at org.openqa.selenium.bidi.Connection.handle(Connection.java:304)
at org.openqa.selenium.bidi.Connection$Listener.lambda$onText$0(Connection.java:277)
... 3 more
How can we reproduce the issue?
Relevant log output
Operating System
Macos
Selenium version
selenium-server-4.23.0.jar
What are the browser(s) and version(s) where you see this issue?
Firefox 128.0.3
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.35.0
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: