Contributions
WaitWPFObject doesn't work
Hi! There is WPF TreeView and some buttons. When I push the button "Refresh" - all elements update in TreeView. And after that TestComplete cannot see this elements: main_folder=Aliases.iexplore.IEFrame.FrameTab.tabpage.ShellDocObjectView.DocObject_Top_Class.pageHttpOisplus64AppProjectsSmar.RootBrowserWindow.MainWindow.Canvas.OpenSaveDialog.Grid.gv.mainGrid.WPFObject("Grid", "", 1).WPFObject("GroupBox", "Tree", 1).WPFObject("Grid", "", 1).WPFObject("tvQueryTree").WPFObject("TreeViewItem", "", 1).WPFObject("editBox"); //main_folder - it's an element in TreeView refreshf=Aliases.iexplore.IEFrame.FrameTab.tabpage.ShellDocObjectView.DocObject_Top_Class.pageHttpOisplus64AppProjectsSmar.RootBrowserWindow.MainWindow.Canvas.OpenSaveDialog.Grid.gv.mainGrid.WPFObject("Grid", "", 1).WPFObject("GroupBox", "Tree", 1).WPFObject("Grid", "", 1).WPFObject("StackPanel", "", 1).WPFObject("Button", "", 4).WPFObject("StackPanel", "", 1).WPFObject("AutoGreyableImage", "", 1); // it's the button, outside TreeView refreshf.Click(); //click the button Refresh if (main_folder.WaitWPFObject("EditBox","*",-1,2000).Exists) Log.Message("Ok"); //this line never executes main_folder.Click(); // Error! TestComplete doesn't see the object, but TestComplete can see all buttons. But when next I write this again (just copy the line (main_folder) above): main_folder=Aliases.iexplore.IEFrame.FrameTab.tabpage.ShellDocObjectView.DocObject_Top_Class.pageHttpOisplus64AppProjectsSmar.RootBrowserWindow.MainWindow.Canvas.OpenSaveDialog.Grid.gv.mainGrid.WPFObject("Grid", "", 1).WPFObject("GroupBox", "Tree", 1).WPFObject("Grid", "", 1).WPFObject("tvQueryTree").WPFObject("TreeViewItem", "", 1).WPFObject("editBox"); refreshf.Click(); main_folder=Aliases.iexplore.IEFrame.FrameTab.tabpage.ShellDocObjectView.DocObject_Top_Class.pageHttpOisplus64AppProjectsSmar.RootBrowserWindow.MainWindow.Canvas.OpenSaveDialog.Grid.gv.mainGrid.WPFObject("Grid", "", 1).WPFObject("GroupBox", "Tree", 1).WPFObject("Grid", "", 1).WPFObject("tvQueryTree").WPFObject("TreeViewItem", "", 1).WPFObject("editBox"); main_folder.Click(); //it works TestComplete can see the object. It seems to me that redefining the variable is something like Wait... function, because appeared the window that is waiting for the object (main_folder) . How to solve this issue? .NET 4.0, WPF, IE 8.0, Windows XP16KViews0likes1CommentSilverlight 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.510KViews0likes1Commentproxy server
Hello. There is a network. I cannot make load testing web pages that are on the Internet. Only local web pages. When I indicate proxy server (Tools->Options->Engines->HTTP load testing) and run test Testcomplete is finished its work(exit). Without proxy it works normal (local pages only). I try to set proxy in other computers but the problem is the same... Windows XP SP3, TestComplete 7.52 trial, IIS6, Internet Explorer 8. Thanks Semyon11KViews0likes2CommentsGlobal variables in C# Scripts
Hello. How can I use global variabels in C# Scripts? For example: function Main() { try { Init() Test1()// Enter your code here. } catch(exception) { Log["Error"]("Exception", exception["description"]); } } function Init() Init() { //init var iexplore; var form; var textbox; var cell; var page; var table; var table2; var submitButton; } I want that all varaibals coud be seen in all functions.16KViews0likes1CommentRecord script, web page
Hi, I have a problem with recording a script in web page. I create a Project, Then click on the Menu Test->Record a Script. In Internet explorer I'm doing some actions and after Stop my Script file is: function Test2() { var iexplore; var page; iexplore = Aliases.iexplore; iexplore.ToURL("http://localhost/test/Default.aspx"); page = iexplore.pageHttpLocalhostTestDefaultAspx; page.Wait(); page.Wait(); page.Wait(); page.Wait(); page.Wait(); } When you press button "Посчитать" you can see the Result (ASP script Refresh the page and output a result). What's problem? What' the "page.Wait();"? Why can't I see code with clicking mouse on calendar or typing in Edit? TestComplete 7.52. ASP.NET (Visual Studio 2008). IIS 6. Internet Explorer 8 Thanks Semyon16KViews0likes3Comments