Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetRoProperties("enabled") returns null?
#1
Not Solved
Hey helpful people,

When I do this:

Code:
IsEnabled = Dialog("Whatever").WinCheckBox("what ever").GetROProperty("enabled")
msgbox IsEnabled

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!
Reply
#2
Not Solved
When you spy, what do you see enabled property value as?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
Hi RandomGrin,

You need to spying, Just check that "enabled" property is showing value or not.

-Sarfraz
Reply
#4
Not Solved
Spy says False, just as it should at the moment.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,297 01-17-2015, 07:49 PM
Last Post: yogi4tech
  how to remove null values in array venkatesh9032 0 2,767 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  getElementByid("myObhectId") return null??? qtptester 3 6,740 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  QTP always returns EOF when querying SQL statement to Access 2K3 riechan 3 4,425 07-26-2012, 01:12 PM
Last Post: riechan
  Null value of the object swapna_gupta08 4 11,588 02-21-2012, 11:00 AM
Last Post: inborntester

Forum Jump:


Users browsing this thread: 1 Guest(s)