Home > Back-end >  Java selenium chrome orientation elements of the problem
Java selenium chrome orientation elements of the problem

Time:09-19

Selenium positioning elements, he can only be orientation to the current display elements, and if I want to how to operate at the bottom of the page elements (don't have to scroll down)

Such as: web pages in a total of 50 class="tit elements, including 20 elements I can see, directly through the browser window, and thirty element at the bottom of the browser, I need to slide after the mouse to see the lower part,
In this case, I use List Names=driver. FindElements (By) the className (" tit "));
So cannot locate to complete 50 elements, and can only be positioned to 20 elements,

Like this kind of situation, how to solve??

CodePudding user response:


Increase the waiting time + pagedown js
https://blog.csdn.net/weixin_41082042/article/details/79164046

Keyboard simulation pagedown

https://www.softwaretestingmaterial.com/scroll-web-page-using-actions-class/
  • Related