What are browser navigation commands in Selenium C#?

0 votes
Jun 10 in Selenium by Hema
24 views

1 answer to this question.

0 votes

Hi Hema, Browser Navigation commands are used to perform navigation operations in browser. Navigation Commands in C# are implemented using INavigation Interface. Different types of Navigation commands available in Selenium with C# are:

  • GoToUrl – This command is used to navigate to particular URL or website and takes URL as string input parameter.

    Syntax: driver.Navigate().GoToUrl(URL);
  • Back – This command is used to navigate back to previous webpage in browser history.

    Syntax: driver.Navigate().Back();
  • Forward -This command is used to move or go to next webpage present in browser history.

    Syntax: driver.Navigate().Forward();
  • Refresh – This command is used to refresh the webpage.

    Syntax: driver.Navigate().Refresh();
answered Jun 10 by Dheeraj

Related Questions In Selenium

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 in Selenium by Abha
• 20,110 points
39 views
0 votes
1 answer

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

Hi Rajan, following are the Navigation commands ...READ MORE

answered May 7 in Selenium by Abha
• 20,110 points
41 views
0 votes
1 answer

What are the differences between getText() and getAttribute() functions in Selenium WebDriver?

See, both are used to retrieve something ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,070 points
4,792 views
0 votes
1 answer

Maximizing the browser window in Selenium WebDriver using C#

Check this first: http://code.google.com/p/selenium/issues/detail?id=174 You Can use the JavascriptExector as follows: public ...READ MORE

answered May 2, 2018 in Selenium by Samarpit
• 5,130 points
64 views
0 votes
1 answer

Maximizing browser window in Selenium WebDriver using C#

You can use the JavascriptExector as follows: public void maximize() ...READ MORE

answered May 30, 2018 in Selenium by Meci Matt
• 9,420 points
352 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,070 points
441 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
790 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
432 views
0 votes
1 answer