Browser name mappings get separated out between "browser", "chrome", "msedge"
I am noticing I am getting duplicate mappings for browsers under the browser name (chrome, msedge) instead of the "browser" name mapping.
Is there a way to prevent items getting mapped under the "chrome" or "msedge" mappings and have them all under "browser"?
Solved! Go to Solution.
Yes you can should be able to make any Hierarchal changes in the mapped objects section of the name mapping.
Check out how here
Hi @kylegogtp -
To add more color here - the reason this is happening may be that there is something mapped under the browser that is specific to one of the browsers.
Your "browser" object should look like this ^ if there is something that makes this object not generic or specific to one browser then TestComplete will not know that all browsers should be treated as the same. Once you remove any browser specific properties from this object you can then drag all of the pages under the browser object from out underneath the "msedge" and "chrome" objects.
Make sure to drag the pages in the NameMapping section as opposed to in the Aliases section. The tool should then prompt you to see if you would like to apply the same changes in the Aliases section, be sure to select "Yes to All" to keep the sections consistent.
When the browser object is generic you should not see this happening again.
Let me know if you have further questions on the subject or if any part of this is unclear?
Thanks for the explanation.
I've started to migrate all the items into browser. I was hoping there was a way to prevent these from getting created again, but it seems I just need to watch for it when mapping new items.
Hi @kylegogtp -
As long as the browser is just listed with object type "browser" as the property then it should not re-create the other chrome and msedge objects.
Hopefully this helps.