ContributionsMost RecentMost LikesSolutionsIssue with Drag action. Out of bounds Hi, Can someone help me with an issue I'm getting with the Drag action I'm working with a DevExpress list box control which enables the user to drag and drop an item in the list. I firstly find the item according to the parameter passed in and click the item. I then get the mouse coordinates after the click action I then try to use the drag action to take these mouse x y coordinates as the starting point and the use the parameter passed in to set the vertical(y) 'MoveByAmount' However, when I run it I keep getting the following error There was an attempt to perform an action at point (x, y), which is out of the window bounds. Is there something obvious that I'm doing wrong? function investmentPriority_MoveInvestment(investmentName, moveValue) { var listBox = Aliases.PSWizard.XtraForm3.EditFormContainer.EditorContainer.ReservationMethodEditForm.InvestmentPriority rowCount = listBox.wItemCount for (i=0;i<rowCount;i++) { if (aqConvert.VarToStr(listBox.wItem(i)) == aqConvert.VarToStr(investmentName)) { listBox.ClickItem(i); var x = listBox.MousePosition.X var y = listBox.MousePosition.Y listBox.Drag(x, y, 0, moveValue) } } } Adam SolvedApplication RunAs issue after upgrading from TestComplete 12 to 14 Hi, I recently upgraded from TestComplete 12 to 14 and I've encountered an issue when using the RunAs method when trying to run an application under a different user account - "Unable to run [application] under [account name] account" I've checked the TC 14 exe to ensure it is run as administrator (which it is). I've also reverted back to TC 12 on the backed up copy of the project and it worked without error, so the project is unique to TC 14 Does anyone have an idea what may have changed in TC 14 that could cause this to no longer work? Thanks Adam SolvedRe: Unable to find the object that matches the [object] item. when running an application in RunAs mode Hi, Initially it worked when running the test through TestExecute from command line. I decided to launch TestComplete.exe directly from the application bin directory. This also worked. The problem was running TestComplete from the desktop icon that was created during the installation process Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode I've managed to run it through TestExecute OK using command line, so it only seems to be a problem with TC I'll speak to one of our developers to review the application's code Thanks Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode Thanks for your information Why do you think that it's only a problem in RunAs mode? TC never has a problem finding the object in normal Run mode Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode Sorry, the application is written in Delphi Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode The code language is JavaScript I read all the SmartBear stuff about environment settings for using the RunAs mode and these are all correct Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode Normal run mode: I have an object called frmPSBadgerOK Mapped name: Aliases.PSBadgerProject.frmPSBadgerOK) Name: VCLObject("frmPSBadgerOK") This is a pop-up box that is displayed when the application completes it's processing. I then click the OK button. With the 'RunAs' mode this changes to MappedName: <Blank> Name: Window("TfrmPSBadgerOK", "Confirm", 1) I try to record a script to click the OK button but it returns an empty function, so it wasn't even able to record the test action function test() { } Re: Unable to find the object that matches the [object] item. when running an application in RunAs mode Thanks for your reply Thenoticeable difference is the application launched in RunAs mode has a property of IsOpen = false, where as the application opened in 'Run' mode is set to true Unable to find the object that matches the [object] item. when running an application in RunAs mode Hi, When I run an application in normal 'Run' mode the application I'm running works consistently; however, when I run the application in 'RunAs' mode (I need to test authorisation functionality so need to run the application under a different user account) it doesn't recognise objects previously mapped and recorded in the NameMapping section. I've confirmed this using the object spy and analysing the name mapping I'm at a loss as to how to fix this. I've tried all the suggestions that I can find including ensuring TC is run with administrator priviledges. I even 'RanAs' the same user currently logged into the machine with no success Does anyone have any ideas as to what might me causing this Thanks Adam Solved