- Anupam Jain
- Posts : 5
Join date : 2012-10-04
beforeClass() code for Selenium WebDriver
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
Can someone please post the @before part code for running a script in Google Chrome.
Regards
Anupam
- ashish_techieAmateur
- Posts : 73
Join date : 2011-08-09
Re: beforeClass() code for Selenium WebDriver
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
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
- How to write selenium java code for doubleClick on a record using webdriver
- How to open a link in another tab of the same window using Selenium webdriver using Java code?
- sample webdriver code for php users
- How to print all the friend names in Facebook using Selenium Webdriver and Java code?
- WebDriver Code will support for MAC operating System?
Permissions in this forum:
You cannot reply to topics in this forum