Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Can not access property from custom object type via method GetTOProperty

SOLVED
Go to Solution
Occasional Visitor

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
Occasional Visitor

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.