-
-
Notifications
You must be signed in to change notification settings - Fork 27
add a plugin for playwright selector engine #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ihor-nikiforov-scout I've produced a playwright |
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 60 60
=====================================
Hits 60 60 Continue to review full report at Codecov.
|
@Georgegriff |
@@ -0,0 +1,21 @@ | |||
const { selectorEngine } = require("query-selector-shadow-dom/plugins/playwright"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a beautiful interface
Add documentation for how to use this in the README.md? |
@thernstig updated the readme, and done a new release to 0.4.0 not appeared on npm yet, not sure why |
@Georgegriff Just a question. Is there a reason one need to add |
It is the default :) |
Oh, it is? But looking at the updated README it says: // shadow= allows a css query selector that automatically pierces shadow roots.
await page.waitForSelector('shadow=#no-downloads span', {timeout: 3000}) |
Do you mean omit it entirely? Can't do that that's how playwright selector engines work it's how it know where to go, you're free to change |
I should have read the API for |
I've not tried it but registering the plugin with a name of css may overwrite their default |
@Georgegriff Will test this once I move to playwright (might take a while) and if it does not work I'll make a feature suggestion on the Playwright repo. Keep staying awesome with this plugins, appreciate it! 💯 |
No description provided.