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

The XPath example uses .. as a selector which doesn't work any more #503

Open
aboyton opened this issue Oct 25, 2024 · 1 comment
Open

Comments

@aboyton
Copy link

aboyton commented Oct 25, 2024

It seems with Webdriver v9 you cannot use .. as a selector any more webdriverio/webdriverio#13652

The documentation https://webdriver.io/docs/selectors/#xpath still references .. as it appears to point to

const parent = await paragraph.$('..')
expect(await parent.getTagName()).toBe('body')

This appears to have been commented out as part of #451

#502 fixes the code to use .parentElement, but this might be deserving of it's own section.

@christian-bromann
Copy link
Member

@aboyton thanks for filing the issue. We should update our docs. With WebDriver Bidi this selector doesn't work anymore as once WebdriverIO provides a start node, there is no way anymore to access its parent.

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

2 participants