Share
Go down
Anupam Jain
Posts : 5
Join date : 2012-10-04

beforeClass() code for Selenium WebDriver

on Mon Oct 08, 2012 6:10 pm
Hi,

Can someone please post the @before part code for running a script in Google Chrome.

Regards

Anupam
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Re: beforeClass() code for Selenium WebDriver

on Wed Oct 31, 2012 12:53 am
You have to set the exe of chromedriver server in class path. Need to download exe from chromium site
write this line

@Before
public void pre(){
System.setProperty("webdriver.chrome.driver","PATH to exe");

}

Regards
Ashish

For selenium tutorials:
www.qtpselenium.com/selenium-tutorials
Back to top
Permissions in this forum:
You cannot reply to topics in this forum