![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
test | ui | Selenium
千里云飞
这个作者很懒,什么都没留下…
展开
-
Selenium | 滚动
1. 使用JS脚本Element.scrollIntoView(); 【推荐】 使用场景:滚动到指定元素所在的位置。 详细文档:https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollIntoView 使用示例://JS代码$('#kb_block > b').get(0).scrollIntoView();//Java原创 2017-09-11 15:10:08 · 2950 阅读 · 0 评论 -
Selenium | FAQ
异常类:org.openqa.selenium.NoSuchElementException异常信息org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//td[text()='i存-60天a']/../原创 2017-09-12 21:20:35 · 6612 阅读 · 1 评论