Selenium webdriver ‘jqwidgets – jqxgrid ‘ data grid with java: How to scroll and get the rows visible?

我怕爱的太早我们不能终老 提交于 2019-12-25 16:36:13

问题


Selenium webdriver ‘jqwidgets – jqxgrid ‘ data grid with java: How to scroll and get the rows visible?

I want to get all the cell value's from a 7 columns JQXgrid table. This is a dynamic loaded data grid with row count will be updated when page gets refreshed. But more than 6 row's will not be visible at a time. User needs to scroll down to get the next 6 rows. Problem is: Selenium cannot read the data which is not visible. We can find the xpath of the vertical scroller to go down to get the next 6 rows to make it visible.

How can i solve it dynamically loaded JQXgrid to get all the values from the table?


Thanks in advance


回答1:


If it is similar to an ajax grid , this link might solve your problem.
https://stackoverflow.com/a/26797156/4193730

Here, a working example of scrolling and finding an element inside a grid is given.



来源:https://stackoverflow.com/questions/26823644/selenium-webdriver-jqwidgets-jqxgrid-data-grid-with-java-how-to-scroll-and

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!