Professional Documents
Culture Documents
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
driver.findElement(By.xpath("//*[@id='loginsubmit']")).click();
//driver.close();
//Closes the browser which is currently focused
driver.quit();
//Closes all the browsers opened by driver
//Destroys the driver object
}