-
Notifications
You must be signed in to change notification settings - Fork 68
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
Not sure to understand how .exclude() works... 🤔 #1046
Comments
Thanks for the issue (and moving it for us :)). Out of curiosity, would the |
@straker Thx for you quick answer! Well... If I'm not wrong, just including doesn't means that the rest of the DOM would be omitted, right? .exclude('*')
.include('.docs-story') But this didn't seem to work either. My final attempt ( |
Just including actually means to test just that part of the DOM you are including. |
@straker Wow! Thx a lot for sharing this resource, I didn't knew it was there! Things are a lot clearer to me right now, thx again! 🙏 |
User Question |
Product
webdriverjs
Question
Hi there 👋
I'm currently working on a a11y script based on
webdriverjs
. But I'm having troubles using the.exclude()
method. As I understood, it can take an array of CSS selectors, right?In my actual setup I have something like:
In my current setup (I'm working on a Design System documented with Storybook), I want to only check
.docs-story
DOM nodes. Afaik the selector should work, but for some reason I end with apage-has-heading-one
error, which should not pop as not related to the defined excluding perimeter, right?I'll be very gratefull to get some more detailed infos about how this works, to be sure I'm building my script correctly! 👍
Thx in advance! 🙏
The text was updated successfully, but these errors were encountered: