1.Download Java
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.Set Environment variable.(Copy the java path and set in environment variable) Path: C:\Program Files\Java\jre1.8.0_221
Control Panel > Advanced system settings
> Environment Variables
Note:https://www.java.com/en/download/help/path.xml
3.Download Eclipse https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32-x86_64.zip unzip and click on eclipse.exe > Provide workbench path > click on workbench at the right side icon.
4. Download Selenium Jar File
https://selenium.dev/downloads/
shared drive to access
https://drive.google.com/open?id=13X7tM0-hjcI5C3IK4_0JLdHqEE9bj-wV
Importing Selenium Jars into Project
Right Click on Project>Properties>Java Build Path>Libraries tab>Add External Jars.
Browse the jar file downloaded click on apply
5. Download Chrome driver.
https://chromedriver.chromium.org/downloads
6. Run sample test(driver.get("https://google.com");)- Navigate to chrome
package Package1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Class1 { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "D:\\UPC\\Selenium\\Repository\\Project1\\drivers\\chromedriver1.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://google.com"); } }
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.Set Environment variable.(Copy the java path and set in environment variable) Path: C:\Program Files\Java\jre1.8.0_221
Control Panel > Advanced system settings
> Environment Variables
Note:https://www.java.com/en/download/help/path.xml
3.Download Eclipse https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32-x86_64.zip unzip and click on eclipse.exe > Provide workbench path > click on workbench at the right side icon.
4. Download Selenium Jar File
https://selenium.dev/downloads/
shared drive to access
https://drive.google.com/open?id=13X7tM0-hjcI5C3IK4_0JLdHqEE9bj-wV
Importing Selenium Jars into Project
Right Click on Project>Properties>Java Build Path>Libraries tab>Add External Jars.
Browse the jar file downloaded click on apply
5. Download Chrome driver.
https://chromedriver.chromium.org/downloads
6. Run sample test(driver.get("https://google.com");)- Navigate to chrome
package Package1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Class1 { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "D:\\UPC\\Selenium\\Repository\\Project1\\drivers\\chromedriver1.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://google.com"); } }
Good work Manju
ReplyDeleteThanks Unknown
Delete