I am currently using the following piece of code to navigate to the middle of the page but it is not working properly.
driver.execute_script("window.scrollTo(0, document.body.scrollHeight/2);")
Also, I am trying to use
element.location_once_scrolled_into_view
Can someone help ?