package seleniumExamples;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class Open3Browsers {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
//open firefox browser
// System.setProperty("webdriver.Firefox.driver", ""))
WebDriver driver = new FirefoxDriver();
//System.setProperty("webdriver.chrome.driver", "C:\\Users\\Public\\Jars\\ChromeDriver.exe");
System.setProperty("webdriver.chrome.driver", "C:\\Users\\sreekanth\\Desktop\\Technical\\Selenium\\Selenium training\\chromedriver_win32\\chromedriver.exe");
//System.setProperty("webdriver.chrome.driver","C:\\ChromeDriver.exe");
WebDriver driverchrome = new ChromeDriver();
//IE driver is found in the link: "http://code.google.com/p/selenium/downloads/detail?name=IEDriverServer_x64_2.38.0.zip"
System.setProperty("webdriver.ie.driver", "C:\\Users\\sreekanth\\Desktop\\Technical\\Selenium\\Selenium training\\IEDriverServer_Win32_2.38.0\\IEDriverServer.exe");
//System.setProperty("webdriver.ie.driver", "C:\\IEDriverServer.exe");
WebDriver driverIe = new InternetExplorerDriver();
}
}
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class Open3Browsers {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
//open firefox browser
// System.setProperty("webdriver.Firefox.driver", ""))
WebDriver driver = new FirefoxDriver();
//System.setProperty("webdriver.chrome.driver", "C:\\Users\\Public\\Jars\\ChromeDriver.exe");
System.setProperty("webdriver.chrome.driver", "C:\\Users\\sreekanth\\Desktop\\Technical\\Selenium\\Selenium training\\chromedriver_win32\\chromedriver.exe");
//System.setProperty("webdriver.chrome.driver","C:\\ChromeDriver.exe");
WebDriver driverchrome = new ChromeDriver();
//IE driver is found in the link: "http://code.google.com/p/selenium/downloads/detail?name=IEDriverServer_x64_2.38.0.zip"
System.setProperty("webdriver.ie.driver", "C:\\Users\\sreekanth\\Desktop\\Technical\\Selenium\\Selenium training\\IEDriverServer_Win32_2.38.0\\IEDriverServer.exe");
//System.setProperty("webdriver.ie.driver", "C:\\IEDriverServer.exe");
WebDriver driverIe = new InternetExplorerDriver();
}
}