Skip to content

docs: explain relative XPath in chained finders - #1336

Open
ac1982 wants to merge 1 commit into
cobrateam:masterfrom
ac1982:docs/relative-xpath
Open

ac1982 wants to merge 1 commit into
cobrateam:masterfrom
ac1982:docs/relative-xpath

Conversation

@ac1982

@ac1982 ac1982 commented Oct 19, 2026

Copy link
Copy Markdown

The element-finding guide promises that chained finders only search child elements, but an XPath starting with // still searches from the document root (#1325).

Explain .// for relative descendant searches and add a two-table example that selects the value next to a label without matching the other table. No driver behavior changes.

Validation: exact documentation example through the Flask/lxml driver; 24 platform-agnostic tests; all pre-commit checks. Sphinx HTML builds with the same two existing warnings as the baseline. Native Selenium browsers were not exercised.

Closes #1325.

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

Successfully merging this pull request may close these issues.

Chaining find_by_* seems to have no effect for xpath

1 participant