Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Firefox browser not working with serenity JS #10

Closed
devdream02 opened this issue Apr 23, 2018 · 3 comments
Closed

Firefox browser not working with serenity JS #10

devdream02 opened this issue Apr 23, 2018 · 3 comments

Comments

@devdream02
Copy link

Hi Team,
I followed the complete tutorial as given in the documentation "http://serenity-js.org/from-scripts-to-serenity/readme.html" and was able to run the test successfully in chrome.

What now i want to do is to run the same in firefox browser which is not happening.

Error i am getting is :-

Some of the npm scripts have failed:

protractor | Command failed: npm run protractor (node:15016) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! code ELIFECYCLE
npm ERR! errno 100
npm ERR! tutorial-from-scripts-to-serenity@1.0.0 protractor: protractor ./protractor.conf.js
npm ERR! Exit status 100
npm ERR!
npm ERR! Failed at the tutorial-from-scripts-to-serenity@1.0.0 protractor script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Error log is attached.
2018-04-23T16_57_06_413Z-debug.log

I have tried multiple suggestion from stack overflow but none worked.

Firefox version :- 59.0.2 (64-bit)

Looking forward for some direction in the right way.

Cheers!!

@jan-molak
Copy link
Member

Hi @devdream02! Would you be able to post your protractor config file and the package.json please?

Thanks,
Jan

@devdream02
Copy link
Author

Hi @jan-molak ,

Thanks for a quick response.
Please find protractor.config.js and package.json within the attached text file.

protractorConfigFile.txt
package.txt

Regards,
Devyansh

@jan-molak
Copy link
Member

Hi Devyansh,

Looks like you might need to specify add marionette to the browser capabilities section of the protractor config:

capabilities: {
    'browserName': 'firefox',
    'marionette': true
}

This article might be of help.

Best,
Jan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants