SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.59k stars 8.17k forks source link

[🐛 Bug]: incomplete response when registering authentication #13217

Closed AnBAng97 closed 10 months ago

AnBAng97 commented 11 months ago

What happened?

The issue happens when I trying to use Selenium in a JavaFX project

    EdgeOptions options = initOptionsWithProxy(credential);
    EdgeDriver driver = new EdgeDriver(options);
    driver.register(UsernameAndPassword.of(credential.username, credential.password));

The Error throws when I uses this line of code driver.register(UsernameAndPassword.of(credential.username, credential.password));

Nov 29, 2023 9:26:54 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 21 by JavaFX runtime of version 19.0.2
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection send
INFO: -> {
  "id": 1,
  "method": "Target.getTargets",
  "params": {
  }
}
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection handle
INFO: <- {"id":1,"result":{"targetInfos":[{"targetId":"9BECD4ECB052F661869BC1D1FFAA8998","type":"service_worker","title":"Service Worker https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","url":"https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","attached":false,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":15328},{"targetId":"BBAF410E7B4E42AEBEBCEDCE99D03CFE","type":"page","title":"New tab","url":"chrome-search://local-ntp/local-ntp.html","attached":true,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":12876}]}}
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection lambda$send$1
WARNING: Unable to map result for Target.getTargets
java.lang.reflect.InaccessibleObjectException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
    at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:201)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:195)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.StaticInitializerCoercer.apply(StaticInitializerCoercer.java:43)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$5(JsonTypeCoercer.java:162)
    at java.base/java.util.Optional.map(Optional.java:260)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.buildCoercer(JsonTypeCoercer.java:162)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:142)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$0(CollectionCoercer.java:63)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$1(CollectionCoercer.java:64)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$6(JsonTypeCoercer.java:171)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:146)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.read(JsonInput.java:423)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.ConverterFunctions.lambda$map$0(ConverterFunctions.java:38)
    at org.seleniumhq.selenium.devtools_v117/org.openqa.selenium.devtools.v117.v117Target.lambda$getTargets$5(v117Target.java:58)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.lambda$send$1(Connection.java:133)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$NamedConsumer.accept(Connection.java:112)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:257)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)

org.openqa.selenium.devtools.DevToolsException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: DevTools Connection
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.sendAndWait(Connection.java:182)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.findTarget(DevTools.java:171)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.createSession(DevTools.java:131)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.createSessionIfThereIsNotOne(DevTools.java:112)
    at org.seleniumhq.selenium.chromium_driver/org.openqa.selenium.chromium.ChromiumDriver.register(ChromiumDriver.java:215)
    at org.seleniumhq.selenium.api/org.openqa.selenium.HasAuthentication.register(HasAuthentication.java:47)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.selenium.Selenium.initDriverWithProxy(Selenium.java:77)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.twitter.ScriptMaker.initBrowser(ScriptMaker.java:39)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.twitter.ScriptMaker.runDefaultScript(ScriptMaker.java:33)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.frontend.ManageAccountScene.onRunScriptClick(ManageAccountScene.java:144)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:578)
    at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:77)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:578)
    at javafx.base@19.0.2/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:275)
    at javafx.fxml@19.0.2/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:84)
    at javafx.fxml@19.0.2/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1852)
    at javafx.fxml@19.0.2/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1724)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
    at javafx.base@19.0.2/javafx.event.Event.fireEvent(Event.java:198)
    at javafx.graphics@19.0.2/javafx.scene.Node.fireEvent(Node.java:8923)
    at javafx.controls@19.0.2/javafx.scene.control.Button.fire(Button.java:203)
    at javafx.controls@19.0.2/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:207)
    at javafx.controls@19.0.2/com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
    at javafx.base@19.0.2/javafx.event.Event.fireEvent(Event.java:198)
    at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.process(Scene.java:3894)
    at javafx.graphics@19.0.2/javafx.scene.Scene.processMouseEvent(Scene.java:1887)
    at javafx.graphics@19.0.2/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2620)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)
    at javafx.graphics@19.0.2/com.sun.glass.ui.View.handleMouseEvent(View.java:551)
    at javafx.graphics@19.0.2/com.sun.glass.ui.View.notifyMouse(View.java:937)
    at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
    at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
    at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:201)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:195)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.StaticInitializerCoercer.apply(StaticInitializerCoercer.java:43)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$5(JsonTypeCoercer.java:162)
    at java.base/java.util.Optional.map(Optional.java:260)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.buildCoercer(JsonTypeCoercer.java:162)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:142)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$0(CollectionCoercer.java:63)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$1(CollectionCoercer.java:64)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$6(JsonTypeCoercer.java:171)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:146)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.read(JsonInput.java:423)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.ConverterFunctions.lambda$map$0(ConverterFunctions.java:38)
    at org.seleniumhq.selenium.devtools_v117/org.openqa.selenium.devtools.v117.v117Target.lambda$getTargets$5(v117Target.java:58)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.lambda$send$1(Connection.java:133)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$NamedConsumer.accept(Connection.java:112)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:257)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    ... 1 more
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection$Listener lambda$onText$0
WARNING: Unable to process: {"id":1,"result":{"targetInfos":[{"targetId":"9BECD4ECB052F661869BC1D1FFAA8998","type":"service_worker","title":"Service Worker https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","url":"https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","attached":false,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":15328},{"targetId":"BBAF410E7B4E42AEBEBCEDCE99D03CFE","type":"page","title":"New tab","url":"chrome-search://local-ntp/local-ntp.html","attached":true,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":12876}]}}
org.openqa.selenium.json.JsonException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.expect(JsonInput.java:467)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.nextName(JsonInput.java:190)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:255)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)

Exception in thread "CDP Connection" org.openqa.selenium.devtools.DevToolsException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:228)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: org.openqa.selenium.json.JsonException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.expect(JsonInput.java:467)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.nextName(JsonInput.java:190)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:255)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    ... 3 more

How can we reproduce the issue?

EdgeOptions options = initOptionsWithProxy(credential);
    EdgeDriver driver = new EdgeDriver(options);
    driver.register(UsernameAndPassword.of(credential.username, credential.password));

Relevant log output

C:\Users\Bang-PC\.jdks\openjdk-19.0.2\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54942,suspend=y,server=n -javaagent:C:\Users\Bang-PC\AppData\Local\JetBrains\IdeaIC2023.1\captureAgent\debugger-agent.jar=file:/C:/Users/Bang-PC/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-controls\19.0.2\javafx-controls-19.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-graphics\19.0.2\javafx-graphics-19.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-base\19.0.2\javafx-base-19.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-fxml\19.0.2\javafx-fxml-19.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-media\19.0.2\javafx-media-19.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar;C:\Users\Bang-PC\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.6.0\kotlin-stdlib-common-1.6.0.jar;C:\Users\Bang-PC\.m2\repository\com\github\virtuald\curvesapi\1.08\curvesapi-1.08.jar;C:\Users\Bang-PC\.m2\repository\org\jsoup\jsoup\1.16.1\jsoup-1.16.1.jar;C:\Users\Bang-PC\.m2\repository\com\google\code\gson\gson\2.10.1\gson-2.10.1.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-java\4.15.0\selenium-java-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-exporter-logging\1.28.0\opentelemetry-exporter-logging-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-metrics\1.28.0\opentelemetry-sdk-metrics-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-extension-incubator\1.28.0-alpha\opentelemetry-extension-incubator-1.28.0-alpha.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-logs\1.28.0\opentelemetry-sdk-logs-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-api-events\1.28.0-alpha\opentelemetry-api-events-1.28.0-alpha.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-support\4.15.0\selenium-support-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\titusfortner\selenium-logger\2.4.0\selenium-logger-2.4.0.jar;C:\Users\Bang-PC\.m2\repository\org\slf4j\slf4j-nop\2.0.6\slf4j-nop-2.0.6.jar;C:\Users\Bang-PC\.m2\repository\org\slf4j\slf4j-api\2.0.6\slf4j-api-2.0.6.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-grid\4.15.0\selenium-grid-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\beust\jcommander\1.82\jcommander-1.82.jar;C:\Users\Bang-PC\.m2\repository\com\google\auto\service\auto-service-annotations\1.1.1\auto-service-annotations-1.1.1.jar;C:\Users\Bang-PC\.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\Bang-PC\.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\Bang-PC\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\Bang-PC\.m2\repository\org\checkerframework\checker-qual\3.33.0\checker-qual-3.33.0.jar;C:\Users\Bang-PC\.m2\repository\com\google\errorprone\error_prone_annotations\2.18.0\error_prone_annotations-2.18.0.jar;C:\Users\Bang-PC\.m2\repository\com\google\j2objc\j2objc-annotations\2.8\j2objc-annotations-2.8.jar;C:\Users\Bang-PC\.m2\repository\com\graphql-java\graphql-java\20.2\graphql-java-20.2.jar;C:\Users\Bang-PC\.m2\repository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;C:\Users\Bang-PC\.m2\repository\com\graphql-java\java-dataloader\3.2.0\java-dataloader-3.2.0.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-buffer\4.1.100.Final\netty-buffer-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-codec-http\4.1.100.Final\netty-codec-http-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-common\4.1.100.Final\netty-common-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-handler\4.1.100.Final\netty-handler-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-resolver\4.1.100.Final\netty-resolver-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-transport-native-unix-common\4.1.100.Final\netty-transport-native-unix-common-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-transport\4.1.100.Final\netty-transport-4.1.100.Final.jar;C:\Users\Bang-PC\.m2\repository\io\ous\jtoml\2.0.0\jtoml-2.0.0.jar;C:\Users\Bang-PC\.m2\repository\org\zeromq\jeromq\0.5.3\jeromq-0.5.3.jar;C:\Users\Bang-PC\.m2\repository\eu\neilalexander\jnacl\1.0.0\jnacl-1.0.0.jar;C:\Users\Bang-PC\.m2\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;C:\Users\Bang-PC\.m2\repository\io\netty\netty-codec\4.1.100.Final\netty-codec-4.1.100.Final.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\lib\idea_rt.jar" -p C:\Users\Bang-PC\.m2\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\Bang-PC\.m2\repository\net\synedra\validatorfx\0.4.0\validatorfx-0.4.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-ie-driver\4.15.0\selenium-ie-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v118\4.15.0\selenium-devtools-v118-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\google\guava\guava\32.1.2-jre\guava-32.1.2-jre.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-base\19.0.2\javafx-base-19.0.2-win.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl-io\17.2\fxgl-io-17.2.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-context\1.28.0\opentelemetry-context-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v117\4.15.0\selenium-devtools-v117-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\apache\commons\commons-compress\1.25.0\commons-compress-1.25.0.jar;C:\Users\Bang-PC\.m2\repository\net\bytebuddy\byte-buddy\1.14.5\byte-buddy-1.14.5.jar;C:\Users\Bang-PC\.m2\repository\org\apache\poi\poi-ooxml\5.2.5\poi-ooxml-5.2.5.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-fxml\19.0.2\javafx-fxml-19.0.2-win.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v85\4.15.0\selenium-devtools-v85-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-chromium-driver\4.15.0\selenium-chromium-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\controlsfx\controlsfx\11.1.2\controlsfx-11.1.2.jar;C:\Users\Bang-PC\.m2\repository\com\dlsc\formsfx\formsfx-core\11.6.0\formsfx-core-11.6.0.jar;C:\Users\Bang-PC\.m2\repository\com\gluonhq\attach\audio\4.0.13\audio-4.0.13.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-controls\19.0.2\javafx-controls-19.0.2-win.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-semconv\1.28.0-alpha\opentelemetry-semconv-1.28.0-alpha.jar;C:\Users\Bang-PC\.m2\repository\org\apache\poi\poi-ooxml-lite\5.2.5\poi-ooxml-lite-5.2.5.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-api\4.15.0\selenium-api-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.12.1\jackson-databind-2.12.1.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-remote-driver\4.15.0\selenium-remote-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib\1.6.0\kotlin-stdlib-1.6.0-modular.jar;C:\Users\Bang-PC\.m2\repository\org\bouncycastle\bcutil-jdk18on\1.76\bcutil-jdk18on-1.76.jar;C:\Users\Bang-PC\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.12.1\jackson-core-2.12.1.jar;C:\Users\Bang-PC\.m2\repository\org\bouncycastle\bcpkix-jdk18on\1.76\bcpkix-jdk18on-1.76.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-extension-autoconfigure-spi\1.28.0\opentelemetry-sdk-extension-autoconfigure-spi-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-graphics\19.0.2\javafx-graphics-19.0.2-win.jar;C:\Users\Bang-PC\.m2\repository\org\apache\poi\poi\5.2.5\poi-5.2.5.jar;C:\Users\Bang-PC\.m2\repository\org\bouncycastle\bcprov-jdk18on\1.76\bcprov-jdk18on-1.76.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-firefox-driver\4.15.0\selenium-firefox-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;C:\Users\Bang-PC\.m2\repository\org\apache\xmlbeans\xmlbeans\5.2.0\xmlbeans-5.2.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-common\1.28.0\opentelemetry-sdk-common-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl\17.2\fxgl-17.2.jar;C:\Users\Bang-PC\.m2\repository\commons-io\commons-io\2.15.0\commons-io-2.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-manager\4.15.0\selenium-manager-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Users\Bang-PC\.m2\repository\commons-codec\commons-codec\1.16.0\commons-codec-1.16.0.jar;C:\Users\Bang-PC\.m2\repository\com\gluonhq\attach\lifecycle\4.0.13\lifecycle-4.0.13.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-safari-driver\4.15.0\selenium-safari-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\kordamp\ikonli\ikonli-core\12.3.1\ikonli-core-12.3.1.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-os\4.15.0\selenium-os-4.15.0.jar;D:\Gamig\gamig\TwitterCareTaker\target\classes;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-trace\1.28.0\opentelemetry-sdk-trace-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-api\1.28.0\opentelemetry-api-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.12.1\jackson-annotations-2.12.1.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-http\4.15.0\selenium-http-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\gluonhq\attach\storage\4.0.13\storage-4.0.13.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl-gameplay\17.2\fxgl-gameplay-17.2.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-json\4.15.0\selenium-json-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\apache\logging\log4j\log4j-api\2.21.1\log4j-api-2.21.1.jar;C:\Users\Bang-PC\.m2\repository\com\zaxxer\SparseBitSet\1.3\SparseBitSet-1.3.jar;C:\Users\Bang-PC\.m2\repository\com\gluonhq\attach\util\4.0.13\util-4.0.13.jar;C:\Users\Bang-PC\.m2\repository\org\kordamp\bootstrapfx\bootstrapfx-core\0.4.0\bootstrapfx-core-0.4.0.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl-core\17.2\fxgl-core-17.2.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-edge-driver\4.15.0\selenium-edge-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl-scene\17.2\fxgl-scene-17.2.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk\1.28.0\opentelemetry-sdk-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\io\opentelemetry\opentelemetry-sdk-extension-autoconfigure\1.28.0\opentelemetry-sdk-extension-autoconfigure-1.28.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v119\4.15.0\selenium-devtools-v119-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\4.15.0\selenium-chrome-driver-4.15.0.jar;C:\Users\Bang-PC\.m2\repository\org\openjfx\javafx-media\19.0.2\javafx-media-19.0.2-win.jar;C:\Users\Bang-PC\.m2\repository\dev\failsafe\failsafe\3.2.1\failsafe-3.2.1.jar;C:\Users\Bang-PC\.m2\repository\org\kordamp\ikonli\ikonli-javafx\12.3.1\ikonli-javafx-12.3.1.jar;C:\Users\Bang-PC\.m2\repository\com\github\almasb\fxgl-entity\17.2\fxgl-entity-17.2.jar -m com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.Application
Connected to the target VM, address: '127.0.0.1:54942', transport: 'socket'
Nov 29, 2023 9:26:54 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 21 by JavaFX runtime of version 19.0.2
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection send
INFO: -> {
  "id": 1,
  "method": "Target.getTargets",
  "params": {
  }
}
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection handle
INFO: <- {"id":1,"result":{"targetInfos":[{"targetId":"9BECD4ECB052F661869BC1D1FFAA8998","type":"service_worker","title":"Service Worker https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","url":"https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","attached":false,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":15328},{"targetId":"BBAF410E7B4E42AEBEBCEDCE99D03CFE","type":"page","title":"New tab","url":"chrome-search://local-ntp/local-ntp.html","attached":true,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":12876}]}}
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection lambda$send$1
WARNING: Unable to map result for Target.getTargets
java.lang.reflect.InaccessibleObjectException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
    at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:201)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:195)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.StaticInitializerCoercer.apply(StaticInitializerCoercer.java:43)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$5(JsonTypeCoercer.java:162)
    at java.base/java.util.Optional.map(Optional.java:260)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.buildCoercer(JsonTypeCoercer.java:162)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:142)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$0(CollectionCoercer.java:63)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$1(CollectionCoercer.java:64)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$6(JsonTypeCoercer.java:171)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:146)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.read(JsonInput.java:423)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.ConverterFunctions.lambda$map$0(ConverterFunctions.java:38)
    at org.seleniumhq.selenium.devtools_v117/org.openqa.selenium.devtools.v117.v117Target.lambda$getTargets$5(v117Target.java:58)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.lambda$send$1(Connection.java:133)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$NamedConsumer.accept(Connection.java:112)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:257)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)

org.openqa.selenium.devtools.DevToolsException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: DevTools Connection
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.sendAndWait(Connection.java:182)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.findTarget(DevTools.java:171)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.createSession(DevTools.java:131)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.DevTools.createSessionIfThereIsNotOne(DevTools.java:112)
    at org.seleniumhq.selenium.chromium_driver/org.openqa.selenium.chromium.ChromiumDriver.register(ChromiumDriver.java:215)
    at org.seleniumhq.selenium.api/org.openqa.selenium.HasAuthentication.register(HasAuthentication.java:47)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.selenium.Selenium.initDriverWithProxy(Selenium.java:77)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.twitter.ScriptMaker.initBrowser(ScriptMaker.java:39)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.backend.twitter.ScriptMaker.runDefaultScript(ScriptMaker.java:33)
    at com.bangpq.twittercaretaker/com.bangpq.twittercaretaker.frontend.ManageAccountScene.onRunScriptClick(ManageAccountScene.java:144)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:578)
    at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:77)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:578)
    at javafx.base@19.0.2/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:275)
    at javafx.fxml@19.0.2/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:84)
    at javafx.fxml@19.0.2/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1852)
    at javafx.fxml@19.0.2/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1724)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
    at javafx.base@19.0.2/javafx.event.Event.fireEvent(Event.java:198)
    at javafx.graphics@19.0.2/javafx.scene.Node.fireEvent(Node.java:8923)
    at javafx.controls@19.0.2/javafx.scene.control.Button.fire(Button.java:203)
    at javafx.controls@19.0.2/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:207)
    at javafx.controls@19.0.2/com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
    at javafx.base@19.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at javafx.base@19.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at javafx.base@19.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    at javafx.base@19.0.2/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
    at javafx.base@19.0.2/javafx.event.Event.fireEvent(Event.java:198)
    at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.process(Scene.java:3894)
    at javafx.graphics@19.0.2/javafx.scene.Scene.processMouseEvent(Scene.java:1887)
    at javafx.graphics@19.0.2/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2620)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)
    at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)
    at javafx.graphics@19.0.2/com.sun.glass.ui.View.handleMouseEvent(View.java:551)
    at javafx.graphics@19.0.2/com.sun.glass.ui.View.notifyMouse(View.java:937)
    at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
    at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json
    at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:201)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:195)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.StaticInitializerCoercer.apply(StaticInitializerCoercer.java:43)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$5(JsonTypeCoercer.java:162)
    at java.base/java.util.Optional.map(Optional.java:260)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.buildCoercer(JsonTypeCoercer.java:162)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:142)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$0(CollectionCoercer.java:63)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.CollectionCoercer.lambda$apply$1(CollectionCoercer.java:64)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.lambda$buildCoercer$6(JsonTypeCoercer.java:171)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:146)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.read(JsonInput.java:423)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.ConverterFunctions.lambda$map$0(ConverterFunctions.java:38)
    at org.seleniumhq.selenium.devtools_v117/org.openqa.selenium.devtools.v117.v117Target.lambda$getTargets$5(v117Target.java:58)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.lambda$send$1(Connection.java:133)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$NamedConsumer.accept(Connection.java:112)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:257)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    ... 1 more
Nov 29, 2023 9:27:11 PM org.openqa.selenium.devtools.Connection$Listener lambda$onText$0
WARNING: Unable to process: {"id":1,"result":{"targetInfos":[{"targetId":"9BECD4ECB052F661869BC1D1FFAA8998","type":"service_worker","title":"Service Worker https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","url":"https://ntp.msn.com/edge/ntp/service-worker.js?riverAgeMinutes=1440&enableNetworkFirst=true&navAgeMinutes=2880&enableNavPreload=true&enableEmptySectionRoute=true&enableFallbackVerticalsFeed=true&networkTimeoutSeconds=5","attached":false,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":15328},{"targetId":"BBAF410E7B4E42AEBEBCEDCE99D03CFE","type":"page","title":"New tab","url":"chrome-search://local-ntp/local-ntp.html","attached":true,"canAccessOpener":false,"browserContextId":"1A6B094B71F67D99A5C35E27363CF2A6","pid":12876}]}}
org.openqa.selenium.json.JsonException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.expect(JsonInput.java:467)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.nextName(JsonInput.java:190)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:255)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)

Exception in thread "CDP Connection" org.openqa.selenium.devtools.DevToolsException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:228)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: org.openqa.selenium.json.JsonException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'
Driver info: driver.version: unknown
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.expect(JsonInput.java:467)
    at org.seleniumhq.selenium.json/org.openqa.selenium.json.JsonInput.nextName(JsonInput.java:190)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection.handle(Connection.java:255)
    at org.seleniumhq.selenium.remote_driver/org.openqa.selenium.devtools.Connection$Listener.lambda$onText$0(Connection.java:225)
    ... 3 more

Operating System

Windows 11

Selenium version

Java 4.15.0

What are the browser(s) and version(s) where you see this issue?

Microsoft Edge Version 117.0.2045.43

What are the browser driver(s) and version(s) where you see this issue?

MsEdgeDriver

Are you using Selenium Grid?

No response

github-actions[bot] commented 11 months ago

@AnBAng97, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

titusfortner commented 11 months ago

Exception in thread "CDP Connection" org.openqa.selenium.devtools.DevToolsException: Expected to read a NAME but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[

The error is because Selenium is trying to parse an incomplete JSON. I'm not sure why it doesn't get the full response.

github-actions[bot] commented 11 months ago

Hi, @AnBAng97. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

titusfortner commented 11 months ago

This code is working: https://github.com/ronPy/seleniumhq.github.io/blob/patch-1//examples/java/src/test/java/dev/selenium/bidirectional/chrome_devtools/BidiApiTest.java#L36-L39

So we need to figure out what you are doing differently to get a different response. Does the above code work for you? What is different with your setup?

joerg1985 commented 11 months ago
but instead have: START_MAP. Last 33 characters read: {"id":1,"result":{"targetInfos":[

@titusfortner The error message is confusing, it will only show what has been parsed so far and not was is the next text to parse.

However, i think this is allready fixed in the latest snapshot, as there was a other issue reported parsing targetInfos in #13163

titusfortner commented 11 months ago

Great. @AnBAng97 please try the nightly version of the jar and let us know if you still have this issue https://www.selenium.dev/downloads/#nightly

AnBAng97 commented 10 months ago

Hi, @AnBAng97. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

Thanks for your response. You can find a Demo Project here https://github.com/AnBAng97/SeleniumBugDemo

I have tried the same code without JavaFX it works just fine. But with JavaFX, it is giving the error

joerg1985 commented 10 months ago

I think this is the key here: InaccessibleObjectException: Unable to make private static org.openqa.selenium.devtools.v117.target.model.TargetInfo org.openqa.selenium.devtools.v117.target.model.TargetInfo.fromJson(org.openqa.selenium.json.JsonInput) accessible: module org.seleniumhq.selenium.devtools_v117 does not "opens org.openqa.selenium.devtools.v117.target.model" to module org.seleniumhq.selenium.json

It looks like you are using the java module system and the module info of the dev tools do not allow the reflective access here. Creating json interfaces #13189 should fix this, as there is no reflection needed any more, or the module info should be changed. I think they are generated and it works in other areas, might be a bug in the generator.

joerg1985 commented 10 months ago

I had a look inside the generated module-info, it looks broken:

    opens org.openqa.selenium.devtools.v117.target.model to
        org.openqa.selenium.json;

It should be opens {package} to {module} and not opens {package} to {package}.

joerg1985 commented 10 months ago

@AnBAng97 could you check the fix with one of the next nightly releases? You need to add the snapshots repo and change the version to 4.16.0-SNAPSHOT.

titusfortner commented 10 months ago

This was fixed, please open a new ticket with updated information if there are still problems.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.