-
Junior Member
How to check Non-Editable Fields in QTP
Hi All,
I have few non-editable field on my screen.User is not suppose to edit those fields.How can I check if they are editable or not in QTP?
-
Expert Member
Re: How to check Non-Editable Fields in QTP
By using GetROProperty we can get the runime object property whether it is enable/disable/editable/non-editable
-
Junior Member
Re: How to check Non-Editable Fields in QTP
Hi,
By using GetRoProperty, we can find whether filed enable or disable.
Here my question is, even it is possible to find editable or non-editable also, if, please let us know how?
Regards,
Vasanth
-
Junior Member
Re: How to check Non-Editable Fields in QTP
check_enabled=window("").WInEdit("").GetROProperty("enabled")
if check_enabled = true then
msgbox "Edit Box is Editable"
else
msgbox "Edit box is Non-Editable"
end if
this is script will use to check whether that edit box is editable or not.
-
Junior Member
Re: How to check Non-Editable Fields in QTP
When we go for Automation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules