Forum Discussion
That specific object may not be found but TestComplete uses the parent objects as well to find the object... so, it could be further up the tree of ancestor objects as to where the problem may be. In your screenshot, your object is a child object of a web page... since you're talking about different environments, I'm assuming the web page is bening mapped by a URL that is different in each environment. What you should do is, on the page object, wildcard with the asterisk (*) character the leading parts of the URL that are different between environments.
tristaanogre Marsha_R the parent page already had "*" in the URL as you can see in the screenshot below. The details message is
Unable to find the following object when executing the Click command:
Aliases.browser.AdminHomePage.AllOrganizations
Reason
The parent object was not found:
Aliases.browser.AdminHomePage
I noticed that it failed when I gave the direct mapped name to it, but it worked when I use another reusable action, which looks for any object that has contentText with "All Organizations" on the page. So this is confusing me why it doesn't work when it has the direct address to the link?
- whuang6 years agoRegular Contributor
Ok, I think I figured out why. The URL I used to sign into this environment landed the user on https://*/admin page, but the parent object URL is pointing to https://*/admin/default.aspx, that's why it cannot find it. It works now after I use a complete sign in URL. Thanks Marsha_R tristaanogre