Does I.Expect.Text("sometext") require the In method with specified selector?
I ask ask as some tests I've inherited don't have the In method appended, and our tests pass, even when I know that the supplied text does not exist on page.
I have looked at the docs, re http://fluent.stirno.com/docs/#asserts-text - and it doesn't seem clear (to me anyhow) that the In selector HAS to be present. I am assuming that it needs to be present.
I guess what I am asking is that if the In method does need to be appended in order for the assertion to work correctly, how would I fluently state does "sometext" appear in any div or p tag or class on page, or should I be using Ids throughout. I see something useful at https://github.com/stirno/FluentAutomation/issues/133.
So something like the following that could be wrapped into an extension method on AssertSyntaxProvider, however it appears heavy-handed/clunky?
var texts = I.Find("html").Elements.Select(el => el.Item2().Text);
I.Assert.True(() => texts.Any(t => t.Contains("statement1")));
I.Assert.True(() => texts.Any(t => t.Contains("statement2")));
I.Assert.True(() => texts.Any(t => t.Contains("statement3")));
Help appreciated!!
Last thing - this is an awesome Library!!!