Creating Webdriver for different browser
Firefox
FirefoxDriver driver = new FirefoxDriver();
Chrome Driver
System.setProperty("webdriver.chrome.driver", "path of chrome driver executable");
ChromeDriver driver = new ChromeDriver();
IE Driver
System.setProperty("webdriver.ie.driver", "path of ie driver executable");
InternetExplorerDriver driver = new InternetExplorerDriver();
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment