clj-chrome-devtools icon indicating copy to clipboard operation
clj-chrome-devtools copied to clipboard

[Feature Request] Some missing functionality compared with Puppeteer

Open lucywang000 opened this issue 4 years ago • 1 comments

I have been using puppeteer and always wondered to have something like this project in clj world, so thanks a lot!

When I try to port of my project from puppeteer to clj-chrome-devtools, there are essentially several missing pieces that are blocking me:

  1. When connected to a browser, clj-chrome-devtools always use of the first page listed in the CDP websocket endpoint.
  2. Some handy features are missing, e.g. page.title(), page.url() etc.
  3. Querying by XPATH seems not supported, only css selectors are allowed.

Does it make sense to add these supports to this project? If so I may try to contribute to it.

lucywang000 avatar Aug 10 '20 11:08 lucywang000

Yes, the higher level automation API is a good place for utilities.

I'll happily accept PR's, when adding utilities please follow the same style as the already existing ones.

And when changing connection behaviour, add them behind an option key.

tatut avatar Aug 10 '20 11:08 tatut