Share
Go down
Hemapriya
Posts : 4
Join date : 2013-01-10

how to check the existing value in the textbox using selenium webdriver.

on 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
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: how to check the existing value in the textbox using selenium webdriver.

on Wed Jan 16, 2013 6:08 pm
driver.getPageSource().contains("value which you want to verify");

_________________
Radical QA
http://radical-qa.blogspot.in/
Hemapriya
Posts : 4
Join date : 2013-01-10

Re: how to check the existing value in the textbox using selenium webdriver.

on Thu Jan 17, 2013 12:57 pm
Thanks for the info.

Regards,

Hemapriya
rohit kumar gupta
Active particpant
Active particpant
Posts : 24
Join date : 2012-09-19
Age : 28
Location : abc

Re: how to check the existing value in the textbox using selenium webdriver.

on 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
Sponsored content

Re: how to check the existing value in the textbox using selenium webdriver.

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