Skip to content

Commit

Permalink
fix: cdp
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 18, 2022
1 parent 00fa2c1 commit 06daba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/selenium/SeleniumDevTools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public inline val RemoteWebDriver.devTools: DevTools get() = (this as HasDevTool
*/
internal fun RemoteWebDriver.cdp(): ChromeDevToolsProtocol {
val ws = Uri.create(capabilities.getCapability("se:cdp") as String)
val json = asyncHttpClient().prepareGet("http://${ws.authority}//json/protocol")
val json = asyncHttpClient().prepareGet("http://${ws.authority}/json/protocol")
.execute()
.get()
.responseBody
Expand Down

0 comments on commit 06daba1

Please sign in to comment.