Forum Discussion

korsar01's avatar
korsar01
Occasional Contributor
14 years ago

Silverlight and WPF

Hello. TestComplete 7.52 doesn'r recognise objects of SilverLight or WPF applications. For example, you can see the followings results:


WPF:


var wnd;

wnd = Aliases["ShellDocObjectView"]["DocObject_Top_Class"]["Item"];

wnd["Click"](439, 246);

wnd["Keys"]("33");

wnd = Aliases["IEXPLORE"]["IEFrame"]["FrameTab"]["tabpage"]["ShellDocObjectView"]["DocObject_Top_Class"]["Item"];

wnd["Click"](511, 247);

wnd["Keys"]("33");

wnd["Click"](468, 314);

wnd["Click"](471, 294);

wnd["Click"](535, 298);


Silverlight:


function Test2()

{

var page;

var table;

var vobject;

Aliases["iexplore"]["ToURL"]("http://oisplus64:8085/");

page = Aliases["iexplore1"]["pageHttpOisplus648085"];

table = page["formAspnetform"]["tableCtl00Systemtable"];

vobject = table["cellCentrnav"]["panelCtl00Updatepanel1"]["tableCtl00Wznavigation"]["cell"]["table"]["cell"]["tableWebpartGwpxap"]["cell"]["panelDivCtl00WpmGwpxapXap"]["objectObjectCtl00WpmGwpxapXap"];

vobject["Click"](973, 40);

vobject["Click"](991, 37);

vobject = table["cell"]["table"]["cell"]["panelCtl00WpbUpdatepanel2"]["tableCtl00WpbWzright"]["cell"]["table"]["cell"]["tableWebpartWp1944410806"]["cell"]["panelDivCtl00WpmWp1944410806Wp93"]["objectObjectCtl00WpmWp1944410806"];

vobject["Click"](190, 11);

vobject["Keys"]("27");

vobject["Click"](176, 132);

page["Drag"](1013, 127, 10, 62);

}


Testcomplete recognize only the Application Window. I also tried to use Find tool (Create Property Checkpoint), but it also can see only Window, it cannot see objects(edit, buttons etc).


I haven't the following objects in menu to tick Project Explorer->Properties->Open Applications->UI
Automation:


ATL:*,MicrosoftSilverlight, MozillaWindowClass





IIS6, WinXP, IE 8, Silverlight 3.0, .NET Framework 3.5




1 Reply

  • Hi Semyon,




    WPF:



    Is it possible for you to provide us with the tested application or another similar application with which the problem can be reproduced? If it is possible, please contact us via our Contact Support form (http://www.automatedqa.com/support/message) regarding this. As an alternative, you can provide us with XAML code of the problematic window so we can check how the window in question should be recognized.




    Silverlight:



    Could you please provide us with access to the tested web application?


    BTW, can the problems be reproduced on another machine?