Forum Discussion

asavoia's avatar
asavoia
Occasional Contributor
5 years ago

different mapping between chrome and firefox

Hello everybody
I noticed that if I use chrome to do a test and immediately after the test I run it with firefox the test dies because firefox does a different mapping than chrome. how can I avoid this problem? in your opinion complete tests can understand which browser you are using and consequently use the correct mapping?

 

  • That is correct... however, define "mapping"?  Because, sure, it will detect the browser, but you have to understand that different browsers may render applications differently.  So, sometimes properties may change, hierarchies may change, etc.  So, while the BROWSER may detect just fine, some of the other pieces may not.

    Your screenshot that you supplied... well, it doesn't really give enough information.  We see the objects... but how are they mapped?  What's their hiearchy compared to the other objects?  What properties are used for mapping them?

     

    To be able to debug your mapping... well, we need to see the actual mapping.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    That is correct... however, define "mapping"?  Because, sure, it will detect the browser, but you have to understand that different browsers may render applications differently.  So, sometimes properties may change, hierarchies may change, etc.  So, while the BROWSER may detect just fine, some of the other pieces may not.

    Your screenshot that you supplied... well, it doesn't really give enough information.  We see the objects... but how are they mapped?  What's their hiearchy compared to the other objects?  What properties are used for mapping them?

     

    To be able to debug your mapping... well, we need to see the actual mapping.

    • BenoitB's avatar
      BenoitB
      Community Hero

      .. and moreover, sometimes, depending upon devs or techs used, components could be different between browsers ... 😞

      No magic sure but by spending your time on good selection of attributes/properties to define as safe and fixed, you avoid lot of problems.

      If you can, ask to the dev team to introduce an unique id just for u in their code. It(s just a best practice to do for them so !

      • sonya_m's avatar
        sonya_m
        SmartBear Alumni (Retired)

        Thank you Community!

         

        asavoia does this answer your question? Please mark the best answer as a solution.

         

        And, of course, do not hesitate to ask more questions here if you still have them.