In my before posts, nosotros accept learnt few BASIC ACTION COMMANDS of selenium WebDriver software testing tool with examples. You volition accept to utilization them on daily footing for yous software spider web application's webdriver essay out instance preparation. It is real of import for yous to utilization them on correct fourth dimension in addition to correct place. Now allow nosotros larn 3 more action commands of webdriver.
1. driver.navigate().to
If yous wants to navigate on specific software spider web application page or URL inwards betwixt your software essay out in addition to then yous tin use driver.navigate().to ascendency every bit bellow.
2. driver.navigate().back();
This ascendency is useful to go dorsum on previous page. Same every bit nosotros are clicking browser dorsum button. You tin utilization this ascendency every bit bellow. In Selenium IDE software testing tool, nosotros tin utilization "goBack" to perform same action.
driver.navigate().back();
3. driver.navigate().forward();
Same every bit nosotros are clicking on frontwards push of browser.
Bellow given illustration volition encompass all iii commands. Execute it inwards your eclipse to know them practically.
@Test world void essay out () throws InterruptedException { driver.navigate().to(" "); //To navigate dorsum (Same every bit clicking on browser dorsum button) driver.navigate().back(); //To navigate frontwards (Same every bit clicking on browser frontwards button) driver.navigate().forward(); }