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


Messages In This Thread
GetRoProperties("enabled") returns null? - by RandomGrin - 02-27-2013, 01:15 AM

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,636 01-17-2015, 07:49 PM
Last Post: yogi4tech
  how to remove null values in array venkatesh9032 0 2,895 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  getElementByid("myObhectId") return null??? qtptester 3 7,109 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  QTP always returns EOF when querying SQL statement to Access 2K3 riechan 3 4,584 07-26-2012, 01:12 PM
Last Post: riechan
  Null value of the object swapna_gupta08 4 11,813 02-21-2012, 11:00 AM
Last Post: inborntester

Forum Jump:


Users browsing this thread: 2 Guest(s)