cancel
Showing results for 
Search instead for 
Did you mean: 

Object recognition problem for WPF using test complete7

Highlighted
New Contributor

Object recognition problem for WPF using test complete7

I am trying to perform a feasibility study for WPF web based applicaiton with testcomplete7.



I have done the settings specified as per teh Help file in TestComplete.



But action on the browser are recognized as

Dim iexplore


Dim wnd


Set iexplore = Aliases.iexplore


Call iexplore.wndIEFrame.ShellDocObjectView.DocObject_Top_Class.Item.Click(473, 111)


Set wnd = iexplore.IEFrame.ShellDocObjectView.DocObject_Top_Class.Item


Call wnd.Item.Click(738, 15)


Call wnd.Click(114, 144)


Just to summaries, the whole page is being identified as a single object iexplorer.

i am in urgent need of the feasibility report by eod. A quick response is appreciated.
4 REPLIES 4
Highlighted

RE: Object recognition problem for WPF using test complete7

Hi Roja,



TestComplete has no special support for XBAP applications. However, we have such a suggestion in our DB, and your request has increased its rating.



Currently, you can work with such applications by using TestComplete's MSAA feature. To do this, you need to add the window class of the XBAP window to the list of the MSAA feature. According to your screenshot, you need to add the HwndWrapper* class. You can learn how to to do this in the Project Properties - MSAA Options help topic.



Does this work for you?
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

RE: Object recognition problem for WPF using test complete7

David,


This works... I am able to record and individual elements are identified.


But i have doubt interms of the differences between WPF and XBAP? XBAP is same as web based WPF right.


The code which i recorded seems like below.


Dim panel


Dim comboBox


Set panel = Aliases.iexplore.IEFrame.tabpage.ShellDocObjectView.DocObject_Top_Class.window1


Set comboBox = panel.combo_box


'Call comboBox.DblClick(1141, 4)


Call comboBox.Click


Call panel.window.list_item_Area3.Click


panel.push_button.ClickButton


Call aqObject.CompareProperty(Aliases.iexplore.IEFrame.tabpage.ShellDocObjectView.DocObject_Top_Class.window.text_Label.Name, cmpEqual, "Text("&Chr(34)&"Label"&Chr(34)&")", False)


 


I am not able to play back the code. When i am trying to play back the code,a combo box selection window properties are changing and code is not being played back.


Can you tell me the solution for this.


Thank you


Highlighted
New Contributor

RE: Object recognition problem for WPF using test complete7

Hi can i get a solution for this problem. I am in urgent need of submitting a proof of concept by EOD.





Thanks in advance
Highlighted

RE: Object recognition problem for WPF using test complete7

Hello Roja,



But i have doubt interms of the differences between WPF and XBAP? XBAP is same as web based WPF right.



Actually, you can work with XBAP applications in a similar way as with WPF applications. However, you need to prepare your tested application as it is described in the Preparing XAML Browser Applications for Testing help topic. If objects are still not recognized, set the value of the Method invoke timeout option to 30000 ms. See the Project Properties - General Open Applications Options help topic for more information.






When i am trying to play back the code,a combo box selection window properties are changing and code is not being played back.



I suppose that objects have been mapped by non-stable properties. Please make sure that all properties you choose for name mapping are stable and do not change from run to run.
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors