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

Feature/improve error msg #388

Merged
merged 5 commits into from
Oct 25, 2019
Merged

Feature/improve error msg #388

merged 5 commits into from
Oct 25, 2019

Conversation

roesslerj
Copy link
Contributor

Improve error message to resolve #303

Jeremias Roessler added 2 commits October 23, 2019 16:37
@roesslerj roesslerj requested a review from diba1013 October 23, 2019 14:45
@cla-bot cla-bot bot added the cla-signed label Oct 23, 2019
Copy link

@diba1013 diba1013 left a comment

Choose a reason for hiding this comment

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

We definitely need more tests, at least one for each specification. Therefore I would split this PR, have a better, more reliable and understandable error message and increase support for the specification (the same goes for XPath).

src/main/java/de/retest/web/selenium/TestHealer.java Outdated Show resolved Hide resolved
src/main/java/de/retest/web/selenium/TestHealer.java Outdated Show resolved Hide resolved
src/main/java/de/retest/web/selenium/TestHealer.java Outdated Show resolved Hide resolved
src/main/java/de/retest/web/selenium/TestHealer.java Outdated Show resolved Hide resolved
@roesslerj roesslerj force-pushed the feature/improve-error-msg branch from 1a7bea3 to 2c820b9 Compare October 24, 2019 15:06
@roesslerj
Copy link
Contributor Author

Agreed. I reverted the last commit on this branch and have a separate branch. Thanks.

Copy link

@diba1013 diba1013 left a comment

Choose a reason for hiding this comment

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

Do we want to log and silently ignore the unsupported selectors (which would fix the error). This would then just not apply the unbreakable, but will itself not break with an exception.

@roesslerj roesslerj requested a review from diba1013 October 24, 2019 18:02
Copy link

@diba1013 diba1013 left a comment

Choose a reason for hiding this comment

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

Please use assertj-core for assertions.

src/test/java/de/retest/web/selenium/TestHealerTest.java Outdated Show resolved Hide resolved
@roesslerj roesslerj force-pushed the feature/improve-error-msg branch from 3dd399a to 9805c4e Compare October 25, 2019 11:18
@roesslerj roesslerj requested a review from diba1013 October 25, 2019 11:18
@roesslerj roesslerj merged commit 959b644 into master Oct 25, 2019
@roesslerj roesslerj deleted the feature/improve-error-msg branch October 25, 2019 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

IllegalArgumentException: To search for element by tag, use By.tag() instead of tag as CSS selector.
3 participants