Posts: 6
Threads: 5
Joined: Mar 2008
Reputation:
0
04-11-2008, 06:09 PM
hi,
Could you please let me know how to identify a non editable text field.
I want to check if that field has become non editable or not.
thanks,
Rashmi
Posts: 1
Threads: 0
Joined: Apr 2008
Reputation:
0
04-16-2008, 12:49 PM
GetROProperty("disabled") =True,means that textbox is not editable
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
02-24-2014, 06:31 PM
There are two ways to do it.
1. Try with GetROPRoperty("enabled") or GetROPRoperty("disabled") property. You will succeed 90% time by this.
2. Use error handling mechanism. Try to put some text in your textbox and capture the err.number. If error occurs then err.number will return non zero value, which in turn make your test pass otherwise fail. But keep your test inside error handling part.
Posts: 2
Threads: 0
Joined: Oct 2014
Reputation:
0
10-10-2014, 04:03 PM
(This post was last modified: 10-10-2014, 04:16 PM by nivedita.)
To identify whether a text object is non-editable, use "disabled" property. That is if "GetROProperty("disabled") = 1, then it means that the text object is non-editable.
Thanks,
Nivedita
<a href="http://www.indiumsoft.com/core-qa-offerings/test-automation" title="Test Automation"><strong>Test Automation</strong></a>