Forum Discussion

sameerjade's avatar
sameerjade
Frequent Contributor
7 years ago

Error with ClickItem method for QtTreeWidgets

Hello,

I am trying to click some items in a Qt tree widget using the ClickItem method. Initially I was not unable to invoke the ClickItem method from the tree widget. After talking to a developer, we found that we do not directly use QTableWidget but rather use a different class QTreeView by doing inheritance. So I added this class QTreeView to Object Mapping. Now, I am able to invoke ClickItem. However my test always fails with this error. Any idea what might be the issue? Thank you!

 

 
An error occured!
 
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete/TestExecute.

Technical information:
30 0x80010105 (The server threw an exception.) .

Tested object:
Aliases.abc.MainFrame.TopWidget.HorzExpandingStrip.splitter.widgetExpander.ContainerLeft.Hds_DataPrep_ProjectExplorerPanel.TabWidget.qt_tabwidget_stackedwidget.Hds_GuiUtils_TreeWidget.TreeView.qt_scrollarea_viewport

 

I am using the method as follows. I tried using both indexes as well as captions as mentioned here.

navigator.ClickItem("|[0]|[0]", 0);

 

 

Sameer

3 Replies