Skip to content
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

support for scoping selectors #42

Open
sharmarahul opened this issue Jan 30, 2018 · 0 comments
Open

support for scoping selectors #42

sharmarahul opened this issue Jan 30, 2018 · 0 comments

Comments

@sharmarahul
Copy link

sharmarahul commented Jan 30, 2018

New to both webdriverio and chai-webdriverio.

I am using something like

var linkToArticleSelector = "a[href='link-to-article']"
expect(linkToArticleSelector).to.be.there();

While this works as expected, is there a way to deal with nested/scoped selectors?

Let's say the link was in the header on the page. I'd like to assert that the link was indeed within the header.

e.g

expect(header).to.have.selector(linkToArticleSelector)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant