| || |
QTP General Run Error when setting .net property
I have a control that has 2 panes as child objects. The panes are in the form of Tabs although QTP doesn't see them as tabs.
Using the .Net windows forms spy I have found that the control has the 2 pane objects as children and they have a property called IsSelectedTab.
On changing the value of IsSelectedTab in the .Net windows form spy, the tabs switch from one to the other.
When getting QTP to change the value in a script, I get a general run error.
For example if I run the following line:
ReturnValue = SwfWindow("MaMa EMEA").SwfObject("GridContainer").Object.Pane.Pane s.Item(i).IsSelectedTab
return value will be equal to True.
If I run:
SwfWindow("MaMa EMEA").SwfObject("GridContainer").Object.Pane.Pane s.Item(i).IsSelectedTab = True
I get a general run error.
Is this normal? I thought QTP should be able to set property values if they were editable in the ,net windows forms spy.
Re: QTP General Run Error when setting .net property
QTP creates a bridge between QTP and .NET. There is some problem with their bridge. SWF object property doesn't work as expected always