Forum Discussion

pneuma's avatar
pneuma
Occasional Contributor
2 years ago

Tests Using Chrome Often Use Edge when I have Edge Open

I have my tests set to use Google Chrome. When I run them, they'll randomly go into my open session of Edge and continue there and fail. The only workaround I can find is to close Edge. Is this a bug? If not, how can I fix this? 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    If you're using scripts, then you need to specify the browser like so,

    var browser = Sys.Browser("chrome");

     Same can be done in keyword testing. See Launch Web Browsers

     

  • Along with rraghvani 's solution, you should also make it a practice to close everything on the test machine except TestComplete and let it open whatever it needs for the test and have it close things when it's done with them.