WebDriver Navigation methods

Back()-

To move back a single "item" in the web browser's history. And it will not perform any action if you are on the first page viewed.

driver.navigate().back();

Forword()-

To move a single "item" forward in the web browser's history. And it will not perform any action if we are on the latest page viewed.

driver.navigate().forward();



Refresh()-

It refreshes the current web page

driver.navigate().refresh();



maximize()-

It maximizes the window size.

driver.manage().window().maximize();



No comments:

Post a Comment

Software Testing Automation Guide

  get methods in Selenium Webdriver Below are the list of get methods that can be use with driver. Get()- This com...