rows = driver.find_elements(By.CSS_SELECTOR, "table tbody tr")
for row in rows:
columns = row.find_elements(By.TAG_NAME, "td")
if columns and "Active" in columns[2].text:
print("Found active user:", columns[0].text)# Infinite scroll using execute_script:
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")