-
Notifications
You must be signed in to change notification settings - Fork 117
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
add TypifiedElement.exists and HtmlElement.exists #91
Conversation
public boolean exists() { | ||
try { | ||
getWrappedElement().isDisplayed(); | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should do return true
at the end of the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To have return
at the method end instead of the middle. It's more a code style issue, rather then something that doesn't work. Also on code coverage report it should look better.
What's the reason behind this changes? |
import org.openqa.selenium.Dimension; | ||
import org.openqa.selenium.Point; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls configure your IDEA to never use wildcard imports
I remember using |
So, provide the reason in description, fix the rest wildcard imports, then squash commits into one and we will merge it then. |
@artkoshelev can i merge this? |
add TypifiedElement.exists and HtmlElement.exists
I remember using exists().matches(element) several times.
I saw PR #83 and thought that I'm not the only one who needs this functionality.