Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98817

Is there a difference between "is visible" and "click element" in Robot Framework/Selenium?

$
0
0

These two lines don't work as expected:

wait until element is visible  ${my xpath}
SeleniumLibrary.click element  ${my xpath}

Approximately half of the time the second line fails. I am not in front of my computer now but it either fails with stale element or couldn't find element with id....

If I add a sleep 3 or so inbetween the lines the second line never fails.

These two lines work frequently but they also fail frequently. Is there a difference in how RF detects that something is visible and how Selenium sends a click to the same element?


Viewing all articles
Browse latest Browse all 98817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>