element = d.find_element_by_xpath("//span[.='Most popular']") d.execute_script("return arguments[0].scrollIntoView();", element)