Reputation: 1
I am new to "Protractor tool", I am able to run my test script in "Chrome" browser. Now I want to run my test script in "Firefox" for that I need to install "gecko driver".
Can anyone tell me how to install "gecko driver" to run test script in "firefox" browser?
I am using
Node -- v6.11.3
NPM -- 3.10.10
Protractor -- 5.1.2
Upvotes: 0
Views: 834
Reputation: 19989
if webdriver-manger update is not working , then download the driver manually from : https://github.com/mozilla/geckodriver/releases
Now goto :
C:\Users\somepath\node_modules\protractor\node_modules\webdriver-manager\selenium
and below property to update-config.json
"gecko": {
"last": "C:\\pathtogeko\\geckodriver.exe"
}
create a new file with that content if it doesn't exists:
{
"gecko": {
"last": "C:\\pathtogeko\\geckodriver.exe"
}
}
Upvotes: 0
Reputation: 2547
Its very simple. Just do following:
If you do not find the Gecko in the above list. Run below command to install the Gecko driver - webdriver-manager update
Once Gecko driver installed, change the browserName:"firefox" in conf.js file and run your test scripts.
Upvotes: 1
Reputation: 23174
The downloads (and source code) for Gecko driver is available here :
https://github.com/mozilla/geckodriver/releases
Instructions for installation are there also. There are compiled binaries available for Windows, Linux and MacOS.
Upvotes: 0