Difference between driver.get() and driver.navigate()
driver.get(““) Will wait till the page loads completely with all controls in place. Used to get page source. driver.getPageSource(); //returns the page source of current url that driver holds driver.navigate().to(““) Can navigate the page forward/backward driver.navigate().forward(); driver.navigate().back(); Used to refresh history. driver.navigate().refresh(); To redirect a page will not wait till page loads…