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();