Issue
I have the following problem, I need to perform the following check: wait until the page contains... but since it contains a br tag I get an error. How could I verify that the text is visible?
I need to verify that the text is visible
Solution
Your page could wait for webelement whose whole text is as expected.
E.g.
wait until page contains element //div[.="Nuestro tableros digitales de control"]
Using dot .
instead of text()
is on purpose! Nice explanation why is, for example, here.
P.S. I retyped the expected text from your screenshot, so check for typos. For this reason, it's nice generally to provide the text source in question, instead of a screenshot.
Answered By - Sam Maksymyshyn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.