How to search for element in dynamic loading grid on scroll using selenium webdriver?

后端 未结 2 576
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 02:10

There is Grid which has say 1000 rows with a column named Username(with distinct values).

And the grid will display only 20 rows per view, and the other rows will be

2条回答
  •  长发绾君心
    2021-01-03 02:53

    I would take "ScrollintoView" any day.
    It will scroll and check for the element simultaneously and halt when it has the element on view
    For help with the code, please follow this link

提交回复
热议问题