Unified Functional Testing Practitioners Forum
cancel

Can not access property from custom object type via method GetTOProperty

SOLVED
Go to solution
Highlighted
narf
Acclaimed Contributor

Can not access property from custom object type via method GetTOProperty

Hello anybody,

 

i got the following error message if I try to access the property "micclass" (or anything else - e.g. "html id") from customized checkbox (type MyOwnCheckBox - implemented with HP Extensibility Accelerator).

 

An error occurred while running the Web extensibility handler for the GetTOProperty method

Dim strMicClass : Set strMicClass = Browser("bName").Page("pName").Frame("fName").MyOwnCheckBox("cName").GetTOProperty("micclass")

 

Whenever I use the workaround with GetTOProperties everything is working fine. Any ideas?

Dim oCbProps : Set oCbProps = Browser("bName").Page("pName").Frame("fName").MyOwnCheckBox("cName").GetTOProperties

MsgBox oCbProps("micclass").Value

 

1 REPLY
narf
Acclaimed Contributor
Solution

Re: Can not access property from custom object type via method GetTOProperty

Very strange behavior. When I close QTP and browser and restart both, everything is working as expected (with method GetTOProperty). Thread closed.

//Add this to "OnDomLoad" event