Below scenarios explains how we can navigate across the browser for various web pages.
Navigate to an Url:
Navigate Back:
Navigate Forward:
WebDriver driver = new FirefoxDriver(); driver.get("http://aksahu.blogspot.in/");
Navigate to an Url:
driver.navigate().to("http://knowledgebase-wiki.appspot.com/");This navigates the page to "http://knowledgebase-wiki.appspot.com/"
Navigate Back:
driver.navigate().back();This navigates back to the previous page "http://aksahu.blogspot.in/"
Navigate Forward:
driver.navigate().forward();This navigates the page forward to "http://knowledgebase-wiki.appspot.com/"
No comments:
Post a Comment