Row Count in Selenium restricted to first 70 rows

48 views Asked by At

I have a table on the webpage which gets populated with rows based on search-filters. The number of rows vary from 1 to 200 base don above.

However, when the number of rows are more than 70, the script selects only first 70 rows. therefore, it loops through only the first 70 rows.

Why is it happening and how can I make the script select all the rows? I have tried zooming the browser from 100% to 75% and 67%, still the same.

code:

grid_rows = driver.find_elements(By.XPATH,
                                         "/html/body/div[1]/div[3]/div/div[2]/div/div/div[2]/div[1]/div[2]/div[1]/div[2]/div[1]/div/div[3]/div/div[2]/div/div/div[2]/div[1]/div[3]/div[1]/div[2]/div[1]/div/div[3]/ptcs-tab-set/ptcs-mb-container/div/div[1]/div[1]/div[1]/div[1]/div[1]/div/div[3]/div[2]/div[2]/table/tbody/tr")

time.sleep(5)
print(len(grid_rows))
0

There are 0 answers