Perform a find directly in the object browser without having to execute your own code
Frequently, I run into problems where my find()/find_child()/find_child_ex()/etc.. calls are finding the wrong objects (sometimes its hard to find uniqueness within the objects you have at your disposal). It would be AMAZING to have a 'finder' tool directly in the object browser that would allow you to pick an object to perform a 'find()' call on, give a form to fill in props and values and it would give you the object (or objects) that it is matching against without having to run any of your own code. It's good to know right off the bat if your props and values are mapping to the object you expect. I could see it saving me a whole lot of time when developing test scripts.8.4KViews8likes2CommentsRegexp not found
I am looking for an Add button object, in a Keyword test, who's height can change vary 23 to 24 pixels because of Bootstrap. I'm have written this as a Code Snippet... Sys.Browser("*").Page("*").Find(["ObjectIdentifier","ObjectType","Height"],["add","Button","regexp:23|24"],200).Click(); Unfortunately TestComplete doesn't seem to recognize the regular expression and find the object. Is there more I should be doing so it can recognize the regular expression?Solved1.4KViews0likes2CommentsImage comparison and image find problems
I'm testing an application, which has a map with several icons. I couldn't find the icons in the Object Browser. My goal is to find a camera icon on the map and click the icon. I have found the original icon as a png file in the program files and try to locate that in the map, but it's not finding the icon. I've read the documentation about the Picture.Find method and tried to use the color and pixel tolerance values. Below is the relevant code of my application in Python. #Starting the application TestedApps.Livi_TLoik_Ui_Kaynnistin.Run() livi_TLoik_Ui_Karttatyokalu = Aliases.Livi_TLoik_Ui_Karttatyokalu hwndSource = livi_TLoik_Ui_Karttatyokalu.HwndSource_Shell grid = hwndSource.Shell.Grid ### #Unrelevant code emitted# ### screenPicture = Sys.Desktop.ActiveWindow().Picture() cameraPicture = Utils.Picture cameraPicture.LoadFromFile("C:\\Program Files\\T-LOIK\\Kartta\\kuvat\\symbolit\\kamera\\s_map_camera_outdated.png") #With a small pixel tolerance value it doesn't find any match, this value finds a wrong place. location = screenPicture.Find(cameraPicture, 0, 0, False, 500,True, 50) Log.Message(location.Bottom) Log.Message(location.Top) Log.Message(location.Right) x = (location.Left + location.Right)/2 y = (location.Top + location.Bottom)/2 grid.Click(x, y) I also tried the compare function with a screenshot of the icon on the map and the same icon, but that didn't work either. I have attached the camera icon and a screenshot of the map. There are several of the camera icons on the map and it doesn't really matter which one I would click. How could I make TestComplete find the image on the map? How could I have debugged this myself?2.5KViews0likes6Comments