-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels