How many types of Navigation commands are there in Selenium Webdriver?

0 votes
How many types of Navigation commands are there in Selenium Webdriver?
May 7 in Selenium by Rajan
14 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hi Rajan, following are the Navigation commands present in Selenium webdriver:

  1. navigate().back() – Requires no parameters and takes back the user to the previous webpage in the web browser’s history. For ex. driver.navigate().back();
  2. navigate().forward() – Navigates to the next web page with reference to the browser’s history. For ex. driver.navigate().forward();
  3. navigate().refresh() – This command lets you refresh the current web page there by reloading all the web elements. For ex. driver.navigate().refresh();
  4. navigate().to() – Used to launch a new web browser window and navigate to the specified URL. For ex. driver.navigate().to(“https://google.com”);
answered May 7 by Abha
• 5,440 points

Related Questions In Selenium

0 votes
1 answer

How many types of Assertion are there in Selenium Webdriver?

Hey Suraj, there are two types of ...READ MORE

answered 5 days ago in Selenium by Anvi
• 5,680 points
11 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 in Selenium by Pratibha
• 2,520 points
17 views
0 votes
1 answer
0 votes
1 answer

How to get HTML Source of WebElement in Selenium WebDriver using Python?

You can read innerHTML attribute to get source of ...READ MORE

answered Jun 13, 2018 in Selenium by Samarpit
• 5,130 points
7,585 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,030 points
51 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,130 points
411 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,130 points
40 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 5 days ago in Selenium by Abha
• 5,440 points
5 views
0 votes
1 answer

What are locators in Selenium and what are the different types of it?

Hi Divya, in Selenium Locators define an ...READ MORE

answered May 7 in Selenium by Abha
• 5,440 points
17 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.