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

$$.shouldHave(texts()) should check size of collection first #454

Closed
asolntsev opened this issue Jan 15, 2017 · 1 comment · Fixed by #944
Closed

$$.shouldHave(texts()) should check size of collection first #454

asolntsev opened this issue Jan 15, 2017 · 1 comment · Fixed by #944
Assignees
Milestone

Comments

@asolntsev
Copy link
Member

asolntsev commented Jan 15, 2017

If table has 3 columns, then the following check could fails with "size does not match" error:

$$("//table/thead/tr/th").shouldHave(texts("First Name, Last name, Username"));

// it's a bug in test. The correct code should be:
// $$("//table/thead/tr/th").shouldHave(texts("First Name", "Last name", "Username"));

Now it report an error that is quite misleading:

TextsMismatch
Actual: [First Name, Last name, Username]
Expected: [First Name, Last name, Username]
@asolntsev
Copy link
Member Author

Will be release in Selenide 5.2.4.

@asolntsev asolntsev added this to the 5.2.4 milestone Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant