You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug isVisible() is always returning false when used along with text("<text_of_a_element>"). await highlight(text("<text_of_a_element>")); is highlighting the element but isVisible() is returning false, if we use a selector like $, button, link etc then we are getting the expected result.
@gokultw I have had the same issue while using Taiko. The problem in my case was that isVisible()returned false when the element I was looking for existed multiple times on the page. So this would be my first guess that the text India is found multiple times on the page but that the Xpath "//DIV[text()='India']" is unique and therefore isVisible() works correctly.
Describe the bug
isVisible()
is always returning false when used along withtext("<text_of_a_element>")
.await highlight(text("<text_of_a_element>"));
is highlighting the element butisVisible()
is returningfalse
, if we use a selector like$, button, link etc
then we are getting the expected result.To Reproduce
Script to reproduce the behavior:
Expected behavior
isVisible()
Should returntrue
since the text is available and visible on the page.Versions:
Additional context
The below code snippet is working fine with
$
instead oftext
The text was updated successfully, but these errors were encountered: