I am using lang :java framework: testNG
my system has 3-4 versions of Mozilla installed, how can i open instance of specific version of Mozilla. Suppose i have 3.5, 3.6,
For firefox
System.setProperty("webdriver.gecko.driver","path of geckodriver.exe");
WebDriver driver = new FirefoxDriver();
Fro Chrome browser
File file = new File("D:\\selnium webdriver\\driver\\chromedriver.exe");
System.setProperty("webdriver.chrome.driver", file.getAbsolutePath() );
WebDriver driver = new ChromeDriver();
For Internet explorer
File file = new File("D:\\selnium webdriver\\driver\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver();