Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

beforeClass() code for Selenium WebDriver

View previous topic View next topic Go down

beforeClass() code for Selenium WebDriver

Post by Anupam Jain 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

Anupam Jain

Posts : 5
Join date : 2012-10-04

Back to top Go down

Re: beforeClass() code for Selenium WebDriver

Post by ashish_techie 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

ashish_techie
Amateur
Amateur

Posts : 73
Join date : 2011-08-09

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum