Open gokultw opened 2 years ago
It looks like it may be a regression introduced by https://github.com/getgauge/taiko/pull/2288
@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