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... . (我现在不在电脑前,但是它要么由于过时的元素而失败,要么找不到ID ...的元素 。)
If I add a sleep 3
or so inbetween the lines the second line never fails.
(如果我在两行之间添加sleep 3
左右,则第二行永远不会失败。)
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? (RF如何检测可见的东西以及Selenium如何将点击发送到同一元素有什么区别?)
ask by EmLi translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…