GithubHelp home page GithubHelp logo

Rpc command not found about cdp HOT 4 CLOSED

arushsaxena1998 avatar arushsaxena1998 commented on May 26, 2024
Rpc command not found

from cdp.

Comments (4)

arushsaxena1998 avatar arushsaxena1998 commented on May 26, 2024 1

we can close this issue. websocket debugger url and chrome debugger url are different. worked for me

from cdp.

mafredri avatar mafredri commented on May 26, 2024

The example you posted works fine for me (Chromium 101.0.4936.0). Output:

&{645 9651 2 false <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil>}
<nil>

I'm curious how you got the websocket URL? I'm not familiar with that structure. If you're trying to use sessions, take a look at the session package.

from cdp.

arushsaxena1998 avatar arushsaxena1998 commented on May 26, 2024

@mafredri I got the websocket URL by generating a session through selenium 4

from cdp.

mafredri avatar mafredri commented on May 26, 2024

Ok, I think that might not be currently supported in this package, is it selenium specific or part of the devtools protocol? I will take a look and see if we can support it when I have some time.

For now, I'd recommend looking at the Incognito example for how how to use sessions.

The URL we're using there looks a bit different, and we're fetching it directly from Chrome:

❯ curl -s http://localhost:9222/json/version | jq -r .webSocketDebuggerUrl
ws://localhost:9222/devtools/browser/637f3792-4870-42f7-adea-47dfe5f43a09

from cdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.