I have created custom library function to check/uncheck WebCheckBox, which internally verify if the checkbox exists and enabled:
Functin fn1(ByVal objTestObject, ByVal timeout)
While(objTestObject.GetROProperty("disabled") =1) And (intCount <= timeout)
intCount = intCount + 1
Functin fn12(ByVal objTestObject, ByVal timeout)
fn1(objTestObject, 60) 'After this line the object emptied
'debug : objTestObject.GetROProperty("name") = Empty
The problem I am facing in secon function as I call the first function, the object 'objTestObject' becomes empty, as soon as the GetROProperty function called and it comes out of while loop.
I am using QTP 11, .NET framework 3.5, 4 are installed on my system.