Ask a Question

How to make codes run with more than one browers

SOLVED
tc_2018
Contributor

How to make codes run with more than one browers

Hi,

I am new to web testing, and I would like to know how to make my codes written for Chrome to also work with I.E11 or vice versa. Can anyone shed some lights?

 

Thanks.

3 REPLIES 3
tristaanogre
Esteemed Contributor

Generally speaking, so long as you don't use browser specific properties and such, there shouldn't be a difference in the tests.  If you do end up needing to do so, you should put conditional code in to check "If browser is Chrome then bar, else foo"


Robert Martin
[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
Extensions available
AlexKaras
Champion Level 3

Hi,

 

In addition to Robert's reply, https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/index.html help section might help.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================

Thanks, Alex. I found a solution via the link you sent me in "Parameterizing the Browsers ..."

cancel
Showing results for 
Search instead for 
Did you mean: