Config settings for Webdriver 3.0 and code update

Start webdriver hub and webdriver node from command prompt

After that do the below settings in your setup class:

 

System.setProperty(“webdriver.chrome.driver”, “C:\\Users\\asharda\\Downloads\\chromedriver\\chromedriver.exe”);
System.setProperty(“webdriver.ie.driver”, “C:\\Users\\asharda\\Downloads\\IEDriverServer.exe”);
//DesiredCapabilities capability = DesiredCapabilities.chrome();
DesiredCapabilities capability = DesiredCapabilities.internetExplorer();
capability.setPlatform(org.openqa.selenium.Platform.ANY);
//driver=new RemoteWebDriver(new URL(“http://localhost:9515”),capability);//Start Chromedriver.exe from command prompt before this
driver=new RemoteWebDriver(new URL(“http://localhost:5555/wd/hub”),capability);//Default port on which IE listens
driver.get(Your url here);
driver.manage().timeouts().implicitlyWait(3000, TimeUnit.SECONDS);

Advertisements

About qainterviews

Software Geek,QA Expert,Blogger
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s