I'm using karma to run my js tests on multiple browsers. the test works on Chrome & Firefox but I can't activate them on IE.
I'm getting the following error message:
Can not load "IE", it is not registered! Perhaps you are missing some plugin?
On my config file
SET CHROME_BIN=c:\Program Files (x86)\Google\Chrome\Application\chrome.exe
SET FIREFOX_BIN=C:\Program Files (x86)\Mozilla Firefox\firefox.exe
SET IE_BIN=C:\Program Files\Internet Explorer\iexplore.exe
I also tried this
SET IE_BIN=C:\Program Files (86)\Internet Explorer\iexplore.exe
I already installed karma-ie-launcher.
Can you help me?
In the configuration file for your project (e.g. karma.config.js), check if you have the plugins listed
After installing the karma ie launcher, replace the index.js from the following file
https://github.com/karma-runner/karma-ie-launcher/pull/9
Please let me know if it does not work.
You have to install the IE launcher, from your project directory where you have installed karma, install ie launcher:
That should create a karma-ie-launcher folder under node_modules(default karma installation folder). Mind that 'plugins:[]' configuration simply instruct Karma what to load, you still have to install the browser launchers if you have not done so in initial Karma installation.
Running karma locally worked for me.
./node_modules/karma/bin/karma start
Amend Package.Json
I had a similar problem with Chrome. After setting the environment variables as you did, what eventually worked was ensuring the following following entries with the specified version numbers in the package.json's devDependencies:
Then perform:
Try wrapping your paths in quotes, e.g.:
Also, make sure you've installed and configured Karma IE launcher.