ContributionsMost RecentMost LikesSolutionsRe: Conditional Name Mapping combining a Project Variable & constant? Thanks for your reply - i only need to basically know my default department name from the list and don't really care what others are on the list - one test environment may have a list of 5 departments, another could have 15. I just need to be able to automate selecting my default department at this stage. My original Project Variable just contained the Department Code e.g. ZZZ, as that's all i need elsewhere on the webpage, but for this particular list, which is selecting the correct department specifically after login, it is showing both the code and the expanded Department name. For now, I have worked around it by creating another Project Variable Default_DeptFullName and set it to be"ZZZ (My Department Name)", but to me it's not ideal as other than this one place, i never need to know the expanded Department name, so if I could have used a wildcard alongside the Project.Variables.Default_Dept in the name mapping, that would have been ideal! It sounds like I can't combine a project variable with a constant though in name mapping - it's either one or the other ? Conditional Name Mapping combining a Project Variable & constant? In my automation script, I have a NameMapping for a dropdown list of options on a webpage (which has identified each item in the list as a button). The list is not constant and will change with each environment I want to test on. I have a Project Variable, let's call it Default_Dept which is set to a department code e.g. ZZZ and the dropdown list contains the list of Department codes with the name of the Department in brackets e.g. ZZZ (My Department Name) In order to select the correct 'button' (which is the ObjectType it has identified for each item in the list), I was trying to use contentText to identify which item in the list to select. Ideally i'd like to do a conditional mapping: contentText Equals (Project Variable, Default_Dept) (*) (as I don't really care about the Department name itself, i just want it to select the right department code from the list), but I can't find a way to combine a Project Variable with a wildcard 'constant'. If I change the NameMapping to "ZZZ (My Department Name)" it finds the object no problem and selects the correct one, but other than creating another Project Variable that contains the code andname, in exactly that format of "CODE (NAME)" as it appears in the list, and then manually change the Project Variable each time the automation is executed in a new environment, as well as Project.Variables.Default_Dept code, then I can't think of another way around it? Ability to check a Region image is NOT displayed on a web page It would be lovely to effectively have a 'negative' Region image check. In my test plan that I am automating, I check for a particular icon appearing in a page, perform an action, and would then like to be able to confirm that the icon no longer displays in it's previous location. I was trying to use if not Region...Check() but this gives me errors in the log, slows down the automation run, and tries to prepare hints as to what it now sees instead. Re: How to check that an image Region does not exist any longer? Thank you both! I investigated the Ambiguous error a little more and yes - the properties were a bit 'vague' forNavBarRHDropdown. For the test itself, I've gone with the other suggestion though of looking for what is in the Region the 2nd time around, rather than focusing on checking that the original region isn't there any more. It would be nice though to have a method of checking it doesn't exist without slowing the test down, etc i.e. a negative check, but the workaround is sufficient for what I need. How to check that an image Region does not exist any longer? Hi, I am working on an automation script where i've used Regions Check function to check that a region (image) exists, then perform an action and want check that it is no longer present. I'm using Python for my scripting and had tried this: if not Regions.MainMenuUserPrefsFocus.Check(HomePg.NavBarRHDropdown.MainPanel.panelMainMenuContainer, False, False, 2165, 17): Log.Message("PASS - User Prefs NOT in Main Menu highlighted / in focus") else: Log.Warning("FAIL - User Prefs displayed in focus on Main Menu") However, this is giving me failures in the log: "Ambiguous recognition of the tested object." Followed by: "The region checkpoint "MainMenuUserPrefsFocus" failed." Followed by my Log message to PASS - User Prefers NOT in Main Menu ... Is there a way to basically perform a negative Region check to check that a region is no longer displayed? Thanks! SolvedRe: Is there a way to turn caps lock on and verify what is entered is in capitals? That worked VeenaDevi! Many thanks 🙂 Don't know why i didn't try that too!🙈 Is there a way to turn caps lock on and verify what is entered is in capitals? I am testing a web interface login screen, which has a facility to detect if caps lock has been turned on when the user enters their password. From reading the documentation, it seems that TestComplete automatically turns off caps lock before test execution, which is fine, but I would really like to be able to check for the message we return of "caps lock is ON" under the password field. I tried this code (i'm using python): #Turn Caps Lock On LoginPg.LoginPasswordField.Keys("[Caps]") LoginPg.LoginPasswordField.Keys("pass") but pausing the test at this point shows the password field has "pass" in it, not "PASS". Any help appreciated! SolvedRe: Feature request: Tolerance level for acceptable differences in image size (in RegionCheckpoint) I have just encountered the same issue with my automation testing. A region checkpoint in Chrome/Edge has image size 439 x 82 but in Firefox has image size 440 x 82. The images are identical to the naked eye, but there must be a subtle difference between how it calculates the area of the region in Firefox. A small tolerance level on image size would be brilliant! Re: how to prevent launching browser with focus in address bar Thank youebarberathat worked! I added: Aliases.browser.BrowserWindow.Keys("[Enter]") and this effectively was pressing go to move focus to the username field as it would if I entered the URL manually and pressed Enter. Many thanks! Re: how to prevent launching browser with focus in address bar Tried recording both a keyword test and a script, and in both cases the only thing it registered was a Navigate to the URL I typed. I added the Navigate command to my script after the Run command just in case, but still the cursor remains in the URL bar. I have repeated the test on Chrome, Firefox and Edge now and in each case the cursor displays in the URL bar, not the username field, but if I type the URL manually it's in the username field for sure. I am at a loss as to why Test Complete is launching it in this way🤔