Hidden / invisible control

I am using the verifyElementPresent to detect if a control appears on a page and if it does I echo a message to a log file using the ${!LastCommandOK}.

I have a scenario whereby the control is not visible on the page but upon looking at the code it is there and therefore the element is detected and the message is given in the log file.

Has anyone else experienced this and know a way work around?

Thank you

That’s right verifyElementPresent as you noticed is not verifyElementVisible.
But the good news are

  1. Kantu team is working on introducing verifyElementVisible (or similar).
  2. There is a workaround. Use waitForVisible with reasonably preset !timeout_wait like 2 secs. If LastCommandOk is true then it’s visible, if not - not.
1 Like