- harishbansal90
- Posts : 4
Join date : 2011-04-12
converting from selenium rc to selenium web driver
Thu Apr 21, 2011 2:46 pm
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
Collapse
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?
i am writing a program to scrap data from a website through selenium RC (selenium 1) from C#.net. i am writing this statement
Collapse
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?
Permissions in this forum:
You cannot reply to topics in this forum