Skip to content

update default method to check if element displayed to always return …#83

Open
michaelsuzukisagi wants to merge 2 commits intoyandex-qatools:masterfrom
michaelsuzukisagi:master
Open

update default method to check if element displayed to always return …#83
michaelsuzukisagi wants to merge 2 commits intoyandex-qatools:masterfrom
michaelsuzukisagi:master

Conversation

@michaelsuzukisagi
Copy link

…a boolean and handle exceptions

Copy link
Contributor

Choose a reason for hiding this comment

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

Here you're presuming that if element isn't found (this is when exception is thrown), then it's invisible. But this is hiding that fact (that element wasn't found) from the developer who runs the tests and therefore I think it's not the right way to handle this.

Instead you should be catching that exception in place where you call isDisplayed method.

@artkoshelev
Copy link
Contributor

test this please

@alkedr
Copy link
Contributor

alkedr commented Sep 7, 2015

I think it would be better to add separate method for that. See PR #91.

Copy link
Member

Choose a reason for hiding this comment

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

CRITICAL Either log or rethrow this exception. rule

@qatools-ci
Copy link
Member

SonarQube analysis reported 2 issues:

  • CRITICAL 2 critical

Watch the comments in this conversation to review them.

Copy link
Member

Choose a reason for hiding this comment

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

CRITICAL Either log or rethrow this exception. rule

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.

5 participants