Answers

Question and Answer:

  Home  Automation

⟩ Tell me what are the different types of navigation commands?

☛ navigate().back() command takes user back to the previous webpage in the web browser’s history. An example: driver.navigate().back();

☛ navigate().forward() lets the user to navigate to the next web page with reference to the browser’s history. An example: driver.navigate().forward();

☛ According to navigate().refresh() command user can refresh the current web page there by reloading all the web elements. An example: driver.navigate().refresh();

☛ User can launch a new web browser window and navigate to the specified URL by executing navigate().to() An example:

driver.navigate().to(“https:// thinkmobiles.com/”);

 135 views

More Questions for you: