Contributions
Cannot perform a hovermouse action when the RDP is disconnected
I am getting this error when trying to hover over a blank screen. "There was an attempt to perform an action at point (436, 504), which is out of the window bounds." There's no other dialog or window open when I perform the mouseHover. The x and y are screen coordinates. I wonder why it's not working when I am disconnected from RDP. Rest of the tests pass. Is there a setting in TestComplete to get rid of this problem? I am using 14.93 version of TestComplete. I have usedhoverMouse function in order to hover over a blank screen. It works if I am connected to VM using RDP connection. It fails when I am disconnected to VM and run the Azure pipeline. I am hovering 20 times using the below code. No other objects are present when performing mouseHover hoverMouse(obj, x, y) { Delay(3000, "Trying to Hover the Cursor at Desired Position"); for (i = 0; i<20; i++) { obj.HoverMouse(x,y) } }Solved711Views0likes2CommentsUnable to find button object
Hi, I have to click the Yes button in order to load the application completely. The attached pop-up window appears when I open a file using TestComplete. The pop-up window appears after some time when the product is launched. Here is the code I have written to click the Yes button. I am trying to wait for that button until it appears on the screen. First, I used the Find method, and then I used FindChildEx. The code is working intermittently. It's not able to find the button always. Can you please tell me what I need to change or is there a simple way to click the button as soon as it appears? //Using the Find method var counter = 0; p = NameMapping.Sys.Process("ORD"); while(true) { Delay(3000); if(counter > 100) { throw new error("Compact database did not appear") } var btnYes = p.Find("WndCaption", "&Yes", 500); if(btnYes.Exists) { btnYes.Click(); break; } counter++; } //Using the FindChildEx method Delay(5000) p = Sys.Process("ORD") if(p.Exists) { var yesBtn = p.FindChildEx("WndCaption", "&Yes", 10, true, 1000); var counter = 1; while(!yesBtn.Exists) { Delay(2000); yesBtn = p.FindChildEx("WndCaption", "&Yes", 10, true, 1000); counter++; if(counter > 50) { break; } if(yesBtn.Exists) { yesBtn.ClickButton(); break; } }1.4KViews0likes5CommentsHow to change the check box's state if it's not mappable individually?
Hi, I want to tick the checkbox with a label. The checkbox is not mapped as an individual object. I tried various methods like set_IsChecked, set_IsSelected, etc. I am passing a boolean value (true) in order to mark it checked. It's not working. I have attached a video that will describe the problem. ThanksSolved1.6KViews0likes3CommentsHow to find the objects that don't have unique values?
I want to map the objects from this tree view. The problem I see that their values don't seem to be reliable. See the attached screenshot. I tried the FindChild method, but it sometimes finds the sought-for object and sometimes doesn't. var microStationFloatingHost = Aliases.OpenRoadsDesigner.HwndSource_WpfMainWindow; var propNames = new Array ("ClrFullClassName","ChildCount"); var propValues = new Array ("Telerik.Windows.Controls.RadTreeView", 2); depth = 0; counter = 1; do { depth++; counter++; var treeView = microStationFloatingHost.FindChild(propNames, propValues, 50, true); if(counter > 50) { break; } }while(!treeView.Exists) Is there a way to deal with such dialogs? I have also attached a video that shows the steps I want TestComplete to do automatically. Thanks,Solved1.9KViews0likes3CommentsRe: FindChild method is not working in iterations
Hi, I have to use the loops because sometimes the child is not found in a first go. First, I try to find the text box object then the dropdown. Second, I need to click on the dropdown once it's found. Third, I need to select the two options (Left/Right) displayed in the list (please see the attached image). So, the parameter I pass to the function will be Left/Right depending on the need. e.g. openRoadCommonFunctions_sideOfCL("Left"). The function should click on the list box and select the parameter I passed. Sometimes, it does not click on the list box and moves to the else block and throws the error "Aliases.OpenRoadsDesigner.DropDownFormEx.StandardValuesListBox" not found. I want to select Left/Right option as required. I have also attached a video that shows the steps I do manually. Thanks, Harshad2.1KViews0likes3CommentsFindChild method is not working in iterations
function openRoadCommonFunctions_sideOfCL(sideOfCL) { try { var hostForm = Aliases.OpenRoadsDesigner.HostForm; var listItemsObj = Aliases.OpenRoadsDesigner.DropDownFormEx.StandardValuesListBox; var propNames = new Array ("WinFormsControlName"); var propValues = new Array ("Misc::Side Of Centerline"); depth = 0; counter = 1; do { depth++; counter++; var sideOfCLTxtBx = hostForm.FindChild(propNames, propValues, 100, true); if(counter > 100) { break; } } while(!sideOfCLTxtBx.Exists); var propNames = new Array ("ClrClassName"); var propValues = new Array ("EditorButton"); depth = 0; counter = 1; do { depth++; counter++; var sideOfCLListBox = sideOfCLTxtBx.FindChild(propNames, propValues, 100, true); if(counter > 100) { break; } } while(!sideOfCLListBox.Exists); if(sideOfCLListBox.Exists){ while(!listItemsObj.Exists){ sideOfCLListBox.ClickButton(); if(listItemsObj.Exists){ break; } } Delay(3000, "Selecting Side Of Centerline..."); methodCount = listItemsObj.wItemCount; methodNames = listItemsObj.wItemList; Log.Message("Count of Side Of Centerlines " + methodCount +" <::> "+ "Side Of Centerline Types:: " + methodNames); listItemsObj.ClickItem(sideOfCL); } else Log.Error("Side Of CL Box does not exist"); } catch(exception) { Log.Error("Exception in Side Of CL function", exception.description); } finally { Log.PopLogFolder(); } } I am trying to use the above code in order to select the two values (Left, Right) displayed in the"Lane Creation Method" dropdown. The code works when I select the first option (Left), and it does not click on the dropdown for the second time. It gives me the exception saying "'Exists' is null or not an object". Is there any other method that can make the clicks on the dropdown without any errors?Solved2.1KViews0likes5CommentsRe: Exclude specific tags and attributes from XML report
I tried the solution you suggested. It's still showing mismatches. Some tags like version number, build number, etc. appear in the report that gets generated run time. Even if I delete the tags from the Tree View, they are present in the output file. How can that be ignored? TC still compares these tags. Thanks, HarshadW1.8KViews0likes1CommentExclude specific tags and attributes from XML report
I am comparing two XMLs. One is a baseline file that has the properties to be compared with an output file. The checkpoint fails due to some attribute values like version number, date, etc. I want to remove such attributes and their values. The attached screenshot depicts the failed values. What do I need to do to exclude such values in order to avoid it from failing? Thanks, HarshadSolved2KViews0likes3Comments