isDisplayed() returns incorrect state
I am currently testing an existing app which extensively uses custom views for different UI elements. One problem is that in one activity a TextView-based button always has isDisplayed set to false and therefore click() does not work. But the element is visible, clickable and clicking in the emulator and/or device works as expected. Using a singleTap TouchAction the action returns immediately with status:0 but no tap/click was performed. The only way to click this button is to use the coordinates and issue down/up TouchActions (thanks DominikDary for this idea)
The same button in another activity has isDisplayed always set to true even if this view is sometimes hidden by the keyboard.
Have heard that our friends at Facebook had a similiar problem. Need to discuss if waitUntilIsDisplayed(); can be removed.
@lukeis @shs96c any opinion?
which would probably solve the click issue but not the wrong result of isDisplayed()
That should solve the issue. Please reopen if that is not solving your problem.
Thanks! Will inform our QA to test the fix
In my case especially with fragments it worked well.