硒2.0 API
我们已经开始使用 Selenium RC 进行 Web 自动化,现在对其进行重新设计,将其更改为 Selenium API。下面是一些需要处理的事情。
selenium.Mouseover(xpath);
selenium.Isvisible(xpath);
selenium.waitforpageload(seconds);
Selenium API 2.0 支持以上吗?对此的任何指示都受到高度赞赏。
We have started off our Web Automation with Selenium RC and now reworking on it to change it to Selenium API. Below are the things which are tuff to handle.
selenium.Mouseover(xpath);
selenium.Isvisible(xpath);
selenium.waitforpageload(seconds);
Does Selenium API 2.0 support above? Any pointers on this is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你没有指定一种语言,但我只能从 Ruby 的角度回答,所以我就这么做。
Mouseover(xpath) 替换为 driver.mouse.move_to(driver.find_element(xpath))
Isvisible 替换为
waitforpageload 已被删除。单击和导航例程现在会自动等待。
You don't specify a language, bur I can only answer from a Ruby perspective, so I'm going to go with that.
Mouseover(xpath) is replaced with driver.mouse.move_to(driver.find_element(xpath))
Isvisible is replaced with
waitforpageload has been removed. The click and nagvigate routines wait automatically now.