【发布时间】:2021-12-11 11:52:31
【问题描述】:
当我保存的项目和测试在 Selenium IDE GUI 中运行时它很好,但是当我执行通过命令行端运行器调用的相同测试时它会失败。问题似乎是 linkText 不可见,但我不明白为什么它在 GUI 上运行良好时会失败。
You can see the last step (8) as passed, with reference to the linkText
I then save the project in my local folder
And run it again using the side runner command
ElementClickInterceptedError:元素点击被拦截:Element Corporate Project/Program/Event (CORP) 在点 (798, 199) 不可点击。其他元素会收到点击:...
似乎链接文本可能被覆盖?当硒测试运行时,就在它挂起之前,我可以看到奇怪的事情。我确实尝试添加一些等待命令,即“等待元素可见”。但似乎没有帮助。 Maybe I didn't insert the command properly?
我觉得我一定遗漏了一些明显的东西。有什么建议吗?
【问题讨论】:
-
我在 GitHub 上发现了类似的线程,表明 IDE 内核和 Web 驱动程序的工作方式存在差异。一位用户表示它实际上是 IDE 正在单击覆盖。我已经设法使用简单的暂停命令解决了我的问题,但不确定为什么等待命令对我不起作用。
标签: selenium selenium-webdriver selenium-chromedriver selenium-ide selenium-side-runner