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?
Printable View
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?
By using GetROProperty we can get the runime object property whether it is enable/disable/editable/non-editable
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
check_enabled=window("<Window Name>").WInEdit("<Edit Box Name>").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.
When we go for Automation.