UIAutoDemo icon indicating copy to clipboard operation
UIAutoDemo copied to clipboard

请问下项目中定位元素没有采用显示等待吧

Open debugerliu opened this issue 4 years ago • 0 comments

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: 如果不采用显式等待,则会大概率,在各种地方出现如此报错,可能是因为第一步的下拉框影响到了第二步的点击,所以会发生如此报错,如果不采取显式等待,则只能使用sleep这种方法。进而拖累脚本的执行速度,还有seldom.main,方法中,指定的timeout应该是重试次数,然后重试1次,会花费5秒的时间,请问能解决吗?所以还是希望能加入显式等待,谢谢。

debugerliu avatar Dec 07 '20 03:12 debugerliu