Giter Club home page Giter Club logo

Comments (4)

mattsse avatar mattsse commented on June 12, 2024

Hmm, couldn't reproduce this with Chromium 88.0.4320.0 : https://streamable.com/a4x350.
I'm not sure what changed with 89.0.4389.90

from chromiumoxide.

thouger avatar thouger commented on June 12, 2024

I want to further find out the reasons, would you mind telling me how to communicate with chrome?Why didn't you original choosed webriver?

i'm came from voyager,you ready good at Rust and i have been learning from you recently. Thank you very much for your contribution,i just new at Rust.

from chromiumoxide.

mattsse avatar mattsse commented on June 12, 2024

The webdriver API is different from chrome's native devtools protocol which is unique for chromium based browsers. You can read about how it works in detail, however the gist of it is, if you run chromium with the --remote-debugging-port=0 argument, it will expose a websocket port that listens for commands, such as Page.PrintTPDF, executes them and returns a response. To describe these commands, chromium uses a special format, like for browser protocol, this allows us to parse them and generate all the rust types via a build script. The API of chromiumoxide basically just bundles a set of commands to convenient operations.
If you want to know more, about the devtools protocol, you should look up puppeteer, the most sophisticated devtools api written in node, there should be a lot of tutorials about how it works in detail.

from chromiumoxide.

thouger avatar thouger commented on June 12, 2024

thanks mattsse!your erudition is amazing, I will go into deeper research here, if there is any new discovery, I will reopen issues,

from chromiumoxide.

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.