different mapping between chrome and firefox
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?
Solved! Go to Solution.
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.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
.. 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 !
Un sourire et ça repart
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.
Community and Education Specialist
my 2 cents, there is a great article in our documentation explaining how to do cross-browser testing in TestComplete. I recommend that you read it: https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/about.html
SmartBear Community and Education Manager