You are on page 1of 1

package mySeleniumPackage;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class SeleniumClass {

public static void main(String[] args) {

WebDriver driver = new FirefoxDriver();


driver.get("http://www.hdfcbank.com/");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);

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
}

You might also like