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

Selenium: Add new methods to the "SeleniumWebDriverHelper" class #8995

Merged
merged 7 commits into from
Mar 3, 2018

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Add new methods to the "SeleniumWebDriverHelper" class

What issues does this PR fix or reference?

Issue: #8988

Release Notes

Docs PR

@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. labels Mar 2, 2018
* <p>throws {@link org.openqa.selenium.TimeoutException} if at least one of the found
* elements is not visible after timeout;
*/
public List<WebElement> waitAllVisibility(By elementsLocator, int timeout) {
Copy link
Contributor

@dmytro-ndp dmytro-ndp Mar 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO method name waitVisibilityOfAllElements() sounds clearer.

* @param elementsLocator common locator for multiple elements
* @return all found elements
*/
public List<WebElement> waitAllPresence(By elementsLocator) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO method name waitPresenceOfAllElements() sounds clearer.

}

/**
* Waits until all {@link WebElement} with provided {@code elementsLocator} be attached to DOM it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be attached > are attached
it does not mean that elements are visible > They are not necessary have to be visible.

@Ohrimenko1988 Ohrimenko1988 merged commit 743c955 into master Mar 3, 2018
@Ohrimenko1988 Ohrimenko1988 deleted the selen-add-methods branch March 3, 2018 12:15
@Ohrimenko1988 Ohrimenko1988 removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Mar 3, 2018
@benoitf benoitf added this to the 6.2.0 milestone Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants