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

Wrong ElementNotFound exception message #528

Closed
biomaks opened this Issue May 11, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@biomaks
Contributor

biomaks commented May 11, 2017

When we are looking for particular option in select element using code:

$("#ddlModel").selectOption("Outlander");

in case if that option does not exist, we get following exception:

com.codeborne.selenide.ex.ElementNotFound: Element not found {#ddlTrim}

Which does not make any sense, because "#ddlModel" element actually exists

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue May 11, 2017

selenide#528 Wrong ElementNotFound exception message
- Show a corresponding option text or index in NotFoundException instead of a select locator in case when option doesn't exists in the select

@asolntsev asolntsev self-assigned this Jul 3, 2017

@asolntsev asolntsev added this to the 4.6 milestone Jul 3, 2017

@asolntsev

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Jul 3, 2017

Contributor

@biomaks @BorisOsipov Thank you! Resolved by PR #530

Contributor

asolntsev commented Jul 3, 2017

@biomaks @BorisOsipov Thank you! Resolved by PR #530

@asolntsev asolntsev closed this Jul 3, 2017

asolntsev added a commit that referenced this issue Jul 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment