Ask a Question

Browser name mappings get separated out between "browser", "chrome", "msedge"

SOLVED
kylegogtp
Contributor

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"?

 

Thanks,

BrowserMappings.png

1 ACCEPTED SOLUTION

Accepted Solutions
ebarbera
Staff

Re: Browser name mappings get separated out between "browser", "chrome", "m

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. 

 

ebarbera_0-1638462016140.png

 

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, 

 

Emma

View solution in original post

4 REPLIES 4
vinniew
Staff

Re: Browser name mappings get separated out between "browser", "chrome", "m

Hi @kylegogtp 

 

Yes you can should be able to make any Hierarchal changes in the mapped objects section of the name mapping. 

 

Check out how here 

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...

and 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/inde...

 

KR 

 

Vincent 

ebarbera
Staff

Re: Browser name mappings get separated out between "browser", "chrome", "m

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. 

 

ebarbera_0-1638462016140.png

 

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, 

 

Emma

kylegogtp
Contributor

Re: Browser name mappings get separated out between "browser", "chrome", "m

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.

ebarbera
Staff

Re: Browser name mappings get separated out between "browser", "chrome", "m

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. 

 

Emma

cancel
Showing results for 
Search instead for 
Did you mean: