driver.switchTo().frame() method takes one of the three possible arguments:
A number - Select a frame by its (zero-based) index.
A name or ID - Select a frame by its name or ID.
A previously found...
Navigation
Loading a web page in a current browser window
driver.get("www.google.com")
driver.navigate().to("www.google.com")
driver.navigate().to("www.google.com")
Move back & forward
Driver.Navigate().Back()
Driver.Navigate().Forward()
Refresh...
close () -By using this command, we can close the current browser or page.
quit() - By using this command, we can shut down the web driver instance or destroy the web driver instance(Close all the windows).
public class dependsonM { @Test public void login() { System.out.println("login"); } @Test (dependsOnMethods = {"login"}) public void email() { //Intentionally I am failing this testcase Assert.assertTrue(false);...