how to get Object.Name without triggering element search
Hi guys, I know that this topic may sound a bit weird, but I have a very good reasons for it :) Here is my situation... I have a mapped element, containing an xpath, which I need to pass to a function as a parameter. The xpath alone, may not find an element! This is a critical point of my problem! The xpath is supposed to be used as a parameter in FindElements method. And because FindElements parameter requires xpath, I first need to extract the xpath from the mapped element. BTW, of course, I know that I can pass the xpath directly as a parameter. But I want all my xpaths stored in Name Mapping and not here or there in keyword/script modules. Therefore, I want to pass either mapped object or string value, representing the mapped/alias object. The problem is, that if the mapped element is used directly, as a parameter of function, during runtime, it always triggers the element search. But as I mentioned above, the xpath alone cannot find the element! So I decided to assign the mapped element via string constant (to avoid the search of element) and then convert the string back to object using Eval function. Eval correctly converts the string to object, but then, after calling Name property, it again tries to search the mapped element in UI, which, of course fails, not to mention takes long time. So, is there a way, how to get the xpath of a mapped element, without triggering element search? Thanks.Solved91Views0likes7CommentsClone Name Repo
Hi. I want to clone a name repository from one project suite to another and I want to clone keyword tests from one project suite to another. Then I want to go into cloned Project suite and change three characters in the url of objects with use of a wildcard ? Or *. Is that possible? TestComplete 15.x.x -todd217Views0likes2CommentsWarning messages in the test run log for improve performance
Hello, Recently I have updated all my nameMapping to use unique identifiers in the XPath and deleted all others that TC saved when recorded. So tipically I have only one selector for each object or element. When I ran the test it gave me the following warning almost for all the objects. You can improve the performance of the object search in the test. The NameMapping.Sys.browser.pageAuth.login_SignIn_Btn object can be found faster if you make //input[@type="submit"] the first selector in its selector list. And in the nameMapping for this object I see only one selector as I mentioned above. Still not sure why its throwing warning messages. Even when I click on Improve performance button in the log it just added an Empty selector, and even with that when I rerun the test it gave same message. One another thing is that the Extended Find column doesn't have any checkboxes. Is there something I missed in the settings or somewhere else TIA556Views1like3CommentsDevExpress htmlContentControl TilesView
Recently we started using DevExpress controls on our project. Mapping them is an unobvious task. Object Spy can't give me the required result. I've tried recording tests and it helped me in previous cases but not with the last. We have two types of panels shown below: Recording the tests gives me htmlContentControl.Click(107, 23); This approach obviously seems wrong to me. Because I want to click a text, not just a point of a given panel. Also, I need to check e.g. if it was selected. Has anyone some advice on how I should search for a proper container of these items?34Views0likes1CommentHow to use scripts and name mapping on Devexpress upgrade ?
What methods can be employed to utilize scripts and name mapping during a Devexpress upgrade? I'm relatively new to Test Complete. While working with a desktop application, I've encountered issues where scripts fail due to changes in Xpath during a Devexpress upgrade. How can such issues be effectively managed both now and in the future to minimize the efforts needed during upgrades? Your suggestions would be greatly appreciated.31Views0likes5CommentsGetting below error 'The object with the specified attributes does not exist.'
I have tracked the object of WPFApplication into namemapping, I am able to highlight the element on the application using highlight button but while executing the test it shows 'The object with the specified attributes does not exist.' above error. I have attached the screenshot below.27Views0likes1CommentHow to validate current date in a table cell
I am trying to verify that a cell in a data table is the current date. It will always be the date of the test run but the object maps like this: I am aware of using code snippets likeaqDateTime.AddTime(aqDateTime.Today(), 0, 0, 0, 0) but how can I use this for the object recognition? Is there a way to set the name mapping for that object to be current date?146Views0likes2Comments