Setup Guide
Setup Guide
%MAVEN_BIN%\bin (Path) =
Setup up Eclipse :
After downloading zip, extract the zip file which will have eclipse in it.
Now open eclipse application icon and set up a workspace as shown
below :
Setting up Selenium_Automation Project in Eclipse:
Go to Files new Java Project
Click finish and your Java project will be created as shown below:
Setting Selenium environment in Eclipse
Go to https://www.seleniumhq.org/download/
System.setProperty("webdriver.chrome.driver",
"C:\\Users\\xyz\\Downloads\\SeleniumAPIs\\
chromedriver_win32\\chromedriver.exe");
// for IE
// WebDriver driver = new InternetExplorerDriver()
// firefox
driver.get("http://newtours.demoaut.com/");
// input[@name='username']
driver.findElement(By.xpath("//input[@name='userName']")).sendKeys("sunil_sel
enium");
driver.findElement(By.xpath("//input[@name='password']")).sendKeys("12345678"
);
driver.findElement(By.xpath("//input[@name='login']")).click();
}