- Hemapriya
- Posts : 4
Join date : 2013-01-10
how to check the existing value in the textbox using selenium webdriver.
Wed Jan 16, 2013 5:21 pm
Hi,
I have to give the value in the text box and saved it and log out of the application.
This I have done.
Again I have to login in to the application and check whether the saved value is displayed there or not.
Please help me in this regard. I do no how to code this.
Thanks
Hemapriya
I have to give the value in the text box and saved it and log out of the application.
This I have done.
Again I have to login in to the application and check whether the saved value is displayed there or not.
Please help me in this regard. I do no how to code this.
Thanks
Hemapriya
Re: how to check the existing value in the textbox using selenium webdriver.
Wed Jan 16, 2013 6:08 pm
driver.getPageSource().contains("value which you want to verify");
- Hemapriya
- Posts : 4
Join date : 2013-01-10
Re: how to check the existing value in the textbox using selenium webdriver.
Thu Jan 17, 2013 12:57 pm
Thanks for the info.
Regards,
Hemapriya
Regards,
Hemapriya
- rohit kumar guptaActive particpant
- Posts : 24
Join date : 2012-09-19
Age : 34
Location : abc
Re: how to check the existing value in the textbox using selenium webdriver.
Sun Feb 10, 2013 5:53 pm
I think the solution offered would verify the value being present in the entire page and not against the text box. Validation might be performed but may not be accurate.
element.getAttributte("value") should suffice the need
element.getAttributte("value") should suffice the need
- Using custom (or existing) firefox profile with webdriver
- Already existing IE instances close on opening new instance with webdriver
- I downloaded and installed Selenium WebDriver Jar files in my Eclipse, but still i am facing issues and couldn't run the webdriver scripsts.
- webdriver + python, how to check for presence of text on page?
- How to check the whether the text present in the page or under particular area or not in Webdriver
Permissions in this forum:
You cannot reply to topics in this forum