You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why: This suggestion is crucial for ensuring that the WebDriver is properly closed after each test, preventing resource leaks and potential issues with subsequent tests. It addresses a best practice in resource management.
9
Use explicit wait to ensure element presence before interaction
Use an explicit wait instead of an implicit wait to ensure the element is present before interacting with it.
Why: Using explicit waits improves test reliability by ensuring elements are present before interaction, which is a best practice in Selenium testing. This change enhances the robustness of the test.
8
Add assertions to verify the expected behavior after element interactions
Add assertions to verify the expected behavior after interacting with the elements.
Why: Adding assertions is a best practice in testing to verify that the code behaves as expected. This suggestion improves the test's effectiveness by ensuring the intended outcome is achieved.
8
Enhancement
Use a more specific locator strategy for improved reliability
Use a more specific locator strategy for the password input field to improve reliability.
Why: A more specific locator strategy can improve the reliability of element selection, reducing the chance of selecting the wrong element. This is a useful enhancement for test accuracy.
I honestly forgot yours included relative locators - I'll close my pr.
I'm trying to help out by updating/moving python as much of the python docs. Would it be useful for me to create an "issue" so others are aware/to avoid dups?
I'm trying to help out by updating/moving python as much of the python docs. Would it be useful for me to create an "issue" so others are aware/to avoid dups?
That's great!
I don't think creating an issue is necessary though, duplicates are rather rare (though granted I did just do it lol). But you could put a message in the selenium-documentation slack about what you're doing to give people a heads-up and let us know when you've put out a new pr.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
moved python examples for relative locators
Description
moved python examples for relative locators in all languages
Motivation and Context
increase comprehensiveness of website
Types of changes
Checklist
PR Type
enhancement, documentation
Description
gh-codeblock
.Changes walkthrough 📝
test_locators.py
Add Python tests for relative locators demonstration
examples/python/tests/elements/test_locators.py
locate_with
for different relative positions like above,below, near, etc.
relative locators.
locators.en.md
Update English documentation with Python example links
website_and_docs/content/documentation/webdriver/elements/locators.en.md
gh-codeblock
for betterintegration.
lines.
locators.ja.md
Update Japanese documentation with Python example links
website_and_docs/content/documentation/webdriver/elements/locators.ja.md
gh-codeblock
.lines.
locators.pt-br.md
Update Portuguese documentation with Python example links
website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md
gh-codeblock
.lines.
locators.zh-cn.md
Update Chinese documentation with Python example links
website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md
gh-codeblock
.lines.