I want to run same test in multiple browsers:
What should be the required code in my configuration file?
Here is my code, what I have tried:
package util;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class DriverManager {
public static WebDriver driver;
String baseUrl="http://--";
public DriverManager()
{
System.setProperty("webdriver.chrome.driver","/home/naveen/chromedriver");
driver=new ChromeDriver();
driver.get(baseUrl);
driver.manage().window().maximize();
}
}
Help me- What should I need to do changes in my above code for Running same test on multiple browsers Like-Chrome, Mozilla, IE...etc?