We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In order to assert on element's text I do the following:
I.Assert.Text("expected text").In(".row");
Now, I want to find multiple elements and assert that any of them has the text. I found a way to do it using .FindMultiple:
.FindMultiple
var texts = I.FindMultiple(".row").Elements.Select(el => el.Item2().Text); I.Assert.True(() => texts.Any(t => t.Contains("expected text")));
Am I right there is no cleaner way to do it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In order to assert on element's text I do the following:
Now, I want to find multiple elements and assert that any of them has the text. I found a way to do it using
.FindMultiple
:Am I right there is no cleaner way to do it?
The text was updated successfully, but these errors were encountered: