Forum Discussion

pneuma's avatar
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? 

2 Replies

  • rraghvani's avatar
    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


  • Marsha_R's avatar
    Champion Level 3

    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.