Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

firefoxProfile object overwrites supplied capabilities #15

Closed
vbyjsue opened this issue Jan 17, 2018 · 1 comment · May be fixed by #16
Closed

firefoxProfile object overwrites supplied capabilities #15

vbyjsue opened this issue Jan 17, 2018 · 1 comment · May be fixed by #16

Comments

@vbyjsue
Copy link

vbyjsue commented Jan 17, 2018

I'm launching wdio programmatically supplying capabilities for firefox like this:

{
  browserName: 'firefox',
  'moz:firefoxOptions': {
    args: ['--width=400', '--height=768']
   }
};

This works fine, opening firefox at the correct size. But I also use the wdio-firefox-profile-service to supply a profile and the firefox-profile-launch-service.js overwrites the 'moz:firefoxOptions' like this:

cap['moz:firefoxOptions'] = {
  profile: zippedProfile
}

If I change firefox-profile-launch-service.js to add the property instead it works:
cap['moz:firefoxOptions'].profile = zippedProfile;

@christian-bromann
Copy link
Contributor

Let's continue our convo in #16

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

Successfully merging a pull request may close this issue.

2 participants