Setting environment variable for CHROME_BIN does not work

Was facing the same issue and I solved it by editing the karma.conf.js and karma-e2e.conf.js files which is under config directory.

Change:

browsers = ['Chrome'];

TO

browsers = ['Your_System_Path_where_chrome_installed/chrome.exe'];

in my case it was > C:/Program Files (x86)/Google/Chrome/Application/chrome.exe

and then add C:\Program Files (x86)\Google\Chrome\Application\chrome.exe path to environment variables


or in cmd

SET CHROME_BIN = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

Additional: Settings for other browsers can be seen here.

And about why chrome one is not working I guess they(Karma) have configured their chrome path from some earlier versions of chrome.


Update: For AngularJS tutorial Followers:

  • You still might face problems (as I faced) while running karma test runner on some tutorial steps and to resolve this: just add these “Angular Scenario Dependencies” in both the “…conf.js” files, like this:
files = [
  ANGULAR_SCENARIO,
  ANGULAR_SCENARIO_ADAPTER,
    ....
    ....  // keep rest of the lines as it is
    ....
];

Leave a Comment

casinojojobetpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casinocanlı bahis casino siteleriOnwin Güncel Girişcasinoholiganbet girişholiganbet güncel giriş