User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
Moving code examples from the .md files to the .py files for elements/finders
Motivation and Context
Keeps code in a single place.
Types of changes
Checklist
PR Type
Enhancement, Documentation
Description
-
Added comprehensive test suite for Selenium element finders in Python:
- Basic element finding methods
- Shadow DOM interaction
- Optimized locators
- Multiple elements finding
- Parent-child element relationships
- Active element handling
-
Updated documentation across multiple languages:
- Replaced inline Python code examples with references to actual test implementations
- Synchronized changes across English, Japanese, Portuguese and Chinese versions
- Maintained consistent documentation structure
-
Improved code organization by:
- Moving code examples from markdown files to dedicated test files
- Ensuring consistent examples across all language versions
- Adding proper test setup/teardown patterns
Changes walkthrough 📝
| Relevant files |
|---|
| Tests |
test_finders.pyAdd comprehensive test suite for Selenium element finders
examples/python/tests/elements/test_finders.py
Added test functions for various element finding methods in Selenium Implemented tests for basic finders, shadow DOM, optimized locators, and active elements Added examples for finding multiple elements and working with parent elements Each test includes proper setup/teardown with driver initialization and quit
+91/-0
|
| Documentation |
finders.en.mdUpdate Python code examples in element finders documentation
website_and_docs/content/documentation/webdriver/elements/finders.en.md
Updated Python code examples to reference actual test implementations Replaced inline code with references to test file examples Maintained documentation structure while updating code blocks
+16/-64
finders.ja.mdSync Japanese documentation with updated Python examples
website_and_docs/content/documentation/webdriver/elements/finders.ja.md
Updated Python code examples to match English version Replaced inline code with references to test implementations
+16/-64
finders.pt-br.mdSync Portuguese documentation with updated Python examples
website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md
Updated Python code examples to match English version Replaced inline code with references to test implementations
+16/-59
finders.zh-cn.mdSync Chinese documentation with updated Python examples
website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md
Updated Python code examples to match English version Replaced inline code with references to test implementations
+16/-64
|
💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information
Uh oh!
There was an error while loading. Please reload this page.
User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
Moving code examples from the .md files to the .py files for elements/finders
Motivation and Context
Keeps code in a single place.
Types of changes
Checklist
PR Type
Enhancement, Documentation
Description
Added comprehensive test suite for Selenium element finders in Python:
Updated documentation across multiple languages:
Improved code organization by:
Changes walkthrough 📝
test_finders.py
Add comprehensive test suite for Selenium element findersexamples/python/tests/elements/test_finders.py
and active elements
elements
and quit
finders.en.md
Update Python code examples in element finders documentationwebsite_and_docs/content/documentation/webdriver/elements/finders.en.md
finders.ja.md
Sync Japanese documentation with updated Python exampleswebsite_and_docs/content/documentation/webdriver/elements/finders.ja.md
finders.pt-br.md
Sync Portuguese documentation with updated Python exampleswebsite_and_docs/content/documentation/webdriver/elements/finders.pt-br.md
finders.zh-cn.md
Sync Chinese documentation with updated Python exampleswebsite_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md