scroll down until element is found in selenium java code example
Example: selenium scroll element into view inside overflow python
element = d.find_element_by_xpath("//span[.='Most popular']")
d.execute_script("return arguments[0].scrollIntoView();", element)