Webdriver automation

41 views
Skip to first unread message

rashmi upari

unread,
Oct 7, 2012, 1:38:00 PM10/7/12
to indian-seleni...@googlegroups.com
Hi All,

In Selenium RC we have --> selenium.type(prop.getProperty("UserName_Edit"), "rashmi.upari");
How to do it in webdriver?what line of code should be re-placed in below 3rd line



WebDriver driver1 = new FirefoxDriver();
driver1.get("xxx");
WebElement username=driver1.findElement(By.xpath("//input[@name='tbxUserName']"));
username.sendKeys("rashmi.upari");

Tulsi tester

unread,
Oct 11, 2012, 6:02:15 PM10/11/12
to indian-seleni...@googlegroups.com
Hi,

we have use as below

WebElement username=driver1.findElement(
By.xpath(prop.getProperty(userName_Edit)));



--
You received this message because you are subscribed to the Google Groups "Indian Selenium Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/indian-selenium-users-group/-/zvNtGiTkb_sJ.
To post to this group, send email to indian-seleni...@googlegroups.com.
To unsubscribe from this group, send email to indian-selenium-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/indian-selenium-users-group?hl=en.


Reply all
Reply to author
Forward
0 new messages