Click here to Skip to main content
15,031,219 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Hi,
i am writing a program to scrap data from a website through selenium RC (selenium 1) from C#.net. i am writing this statement
string a;
a=selenium.GetText("//div[@id='article_10124_27401_1.0']/table/tbody/tr[3]/td[1]/strong/font");

This statement easily scrap the useful information and store on the string variable 'a', but problem is that, it opens the browser.

now, i want to write the same program in selenium web driver (selenium 2) with HTML Unit driver because i don't want to open the browser.

so pls anyone tell me , what is the replacement of above statement from selenium rc to selenium web driver?
Posted
Updated 20-Apr-11 21:34pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900