What are the ways of scrolling webpage to the bottom of the page in Selenium Webdriver?

0 votes
What are the ways of scrolling webpage to the bottom of the page in Selenium Webdriver without using JS Executor?
Jun 24, 2019 in Selenium by Puneet
165 views

1 answer to this question.

0 votes

Hi @Puneet, there are a few ways of scrolling a webpage to the bottom of the page without using JavaScript Executor:

  1. WebElement body = driver.findElement(By.tagName("body"));
    body.sendKeys(Keys.END);
  2. WebElement body = driver.findElement(By.tagName("body"));
    body.sendKeys(Keys.chord(Keys.SHIFT,Keys.TAB));
    
answered Jun 25, 2019 by Patrik

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

What are the different types of TestNG listeners in Selenium Webdriver?

Hello Jagrati, some of the TestNG listeners ...READ MORE

answered Jun 12, 2019 in Selenium by Anvi
• 14,030 points
334 views
0 votes
1 answer

What are the main types of regex quantifiers used in Selenium Webdriver?

Hi Andrew, some of the regex quantifiers ...READ MORE

answered Jun 26, 2019 in Selenium by Abha
• 27,920 points
801 views
0 votes
1 answer

What are the drawbacks of using thread.sleep() command in Selenium Webdriver?

Hey Eric, some of the drawbacks of ...READ MORE

answered Jul 5, 2019 in Selenium by Abha
• 27,920 points
1,389 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
2,550 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
2,027 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
2,116 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
600 views
0 votes
1 answer

What are some of the browser commands used in Selenium Webdriver?

Hi Nakul, some of the most frequently ...READ MORE

answered May 14, 2019 in Selenium by Abha
• 27,920 points
107 views