GetRoProperties("enabled") returns null? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: GetRoProperties("enabled") returns null? (/Thread-GetRoProperties-enabled-returns-null) |
GetRoProperties("enabled") returns null? - RandomGrin - 02-27-2013 Hey helpful people, When I do this: Code: IsEnabled = Dialog("Whatever").WinCheckBox("what ever").GetROProperty("enabled") I get a msgbox with no contents...which I assume means NULL. I was expecting 0/1 or True/False. Same thing happens with "disabled". If the wincheckbox is enabled, I am able to set the value just fine, so there is no problem with object identification. QTP 11.0 Googling has giving me no hints. Anyone got any ideas what is happening here? Thanks, And the same thing happens with GetToProperty. I need to avoid the error, 'object is disabled' when I try to set the value. But I am not able to tell if it is disabled or not before setting the value....Help! RE: GetRoProperties("enabled") returns null? - basanth27 - 02-27-2013 When you spy, what do you see enabled property value as? RE: GetRoProperties("enabled") returns null? - Munna.Sarfraz - 02-27-2013 Hi RandomGrin, You need to spying, Just check that "enabled" property is showing value or not. -Sarfraz RE: GetRoProperties("enabled") returns null? - RandomGrin - 02-28-2013 Spy says False, just as it should at the moment. |