scroll to bottom of page with selenium

  • 1 Replies
  • 1225 Views
scroll to bottom of page with selenium
« on: June 14, 2016, 10:00:27 am »
I want to run some tests on the page footer of my website.

I want to scroll all the way down to the bottom of some pages before I start comparing elements etc.

How can I do this with selenium framework ?

Re: scroll to bottom of page with selenium
« Reply #1 on: June 15, 2016, 18:41:20 pm »
Selenium framework already calls the element into view when interacting with it (via click, actions etc.)

If you are certain that elements exist at the bottom of the page then doing anything to an element will cause the page to scroll.

 

Sitemap 1 2 3 4 5 6 7 8