Browser Navigation Commands
The route in a program utilizing the Browser Navigation Commands of IWebDriver execution. IWebDriver interface executed by all the bolstered program classes. They discover these route summons in all programs. We talk about different route orders utilized as a part of robotization testing. The navigation interface opens the capacity to move in reverse and program's history Browser Navigation Commands in C-Sharp.
Browser Navigation Commands in C-Sharp
To get to the route's technique, sort IWebDriver.navigate(). In the event utilizing Visual Studio or any IDE. which bolsters IntelliSense, rundown of accessible route charges use. The following is the picture demonstrating every one of the summonses selenium.
We have four Navigation charges
This charge utilized to explore specific page. Mark of this summons selenium void INavigation.GoToUrl(String URL): This String estimation of the URL as information parameter and returns. When this announcement executed program explores new page determined by the URL parameter. Charge – driver.Navigate().GoToUrl(app Url); Where app URL is the site deliver to stack. It is best to use a completely qualified URL. Use: driver.Navigate().GoToUrl("http://toolsqa.wpengine.com");
Back summon utilized explore to the past page in the program history. This like happens tap on the back catch in the program. void INavigation.Back(): This summons does not take any parameter. Takes you back to one page in the program's history. Use: driver.Navigate().Back();
The forward order utilized to explore the following page in the program history. This like happens tap on the forward catch in the program, on the off chance that you have some history forward way
void INavigation.Forward(): This charge does not take any parameter. Takes you forward by one page in the program's history. Use: driver.Navigate().Forward();
This order invigorates the page as though you have squeezed F5 on the program. void INavigation.Refresh(): This order does not take any parameter Use: driver.Navigate().Refresh();