-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
added locator code file for java for locator strategies Section and added content in diff languages files #2583
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
base: trunk
Are you sure you want to change the base?
added locator code file for java for locator strategies Section and added content in diff languages files #2583
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||
User description
added locator code file for java for locator strategies Section and added content in diff languages files
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
Added java program for locators and added the code block in diff files
Motivation and Context
it wasn't there.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Created comprehensive Java test class for locator strategies
Replaced inline code snippets with references to actual test methods
Updated documentation across multiple language files (English, Japanese, Portuguese, Chinese)
Removed old LocatorsTest.java file with ByAll and ByChained examples
Diagram Walkthrough
File Walkthrough
LocatorTest.java
New comprehensive Java locator test classexamples/java/src/test/java/dev/selenium/elements/LocatorTest.java
strategies
lifecycle management
tagName, and xpath locators
properties
LocatorsTest.java
Removed deprecated LocatorsTest fileexamples/java/src/test/java/dev/selenium/elements/LocatorsTest.java
locator strategy tests
locators.en.md
Updated Java examples with test file referenceswebsite_and_docs/content/documentation/webdriver/elements/locators.en.md
LocatorTest.java
partialLinkText, tagName, xpath) now links to corresponding test
method
examples
locators.ja.md
Updated Japanese locator documentation referenceswebsite_and_docs/content/documentation/webdriver/elements/locators.ja.md
LocatorTest.java
locators.pt-br.md
Updated Portuguese-Brazilian locator documentation referenceswebsite_and_docs/content/documentation/webdriver/elements/locators.pt-br.md
LocatorTest.java
structure
locators.zh-cn.md
Updated Chinese locator documentation referenceswebsite_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md
LocatorTest.java
structure