0

On my page, if there are more scroll down bars, how can I find the one I want to scroll down.

I mean, I want to scroll down the bar from the middle, the one from the right side is the browser bar.

As you can see in the below photo, I want to move the one with yellow arrows.

enter image description here

Paul Vio
  • 57
  • 1
  • 7

1 Answers1

0

I found the solution, and I posted it, perhaps it will help someone.

element = driver.find_elements_by_class_name('paginated')
driver.execute_script('arguments[0].scrollTop = arguments[0].scrollHeight', element[0])

Selenium Firefox webdrive, using Python, scrolling in div

Paul Vio
  • 57
  • 1
  • 7