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

add TypifiedElement.exists and HtmlElement.exists #91

Merged
merged 1 commit into from
Jan 20, 2016
Merged

add TypifiedElement.exists and HtmlElement.exists #91

merged 1 commit into from
Jan 20, 2016

Conversation

alkedr
Copy link
Contributor

@alkedr alkedr commented Sep 7, 2015

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.

public boolean exists() {
try {
getWrappedElement().isDisplayed();
return true;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor

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.

@artkoshelev
Copy link
Contributor

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.*;
Copy link
Contributor

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

@alkedr
Copy link
Contributor Author

alkedr commented Sep 8, 2015

What's the reason behind this changes?

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.

@artkoshelev
Copy link
Contributor

So, provide the reason in description, fix the rest wildcard imports, then squash commits into one and we will merge it then.

@lanwen
Copy link
Contributor

lanwen commented Jan 16, 2016

@artkoshelev can i merge this?

artkoshelev added a commit that referenced this pull request Jan 20, 2016
add TypifiedElement.exists and HtmlElement.exists
@artkoshelev artkoshelev merged commit 3cfbd0d into yandex-qatools:master Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants