Giter VIP home page Giter VIP logo

wdio-firefox-profile-service's People

Contributors

andriilazebnyi avatar christian-bromann avatar dombre avatar tallyb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wdio-firefox-profile-service's Issues

Cannot find module '/tmp/.../package.json'

Hi,

I'm trying to install an unsigned Firefox addon I want to test. In my wdio.conf.js, I have:

    services: ['firefox-profile'],    
    firefoxProfile: {
      'xpinstall.signatures.required': false,
      extensions: [__dirname+'/output/firefox/firefox.xpi']
    }

But when I run it, I get:

A service failed in the 'onPrepare' hook
Error: Cannot find module '/tmp/d410c520-7be1-4492-a3d5-4a8067a2d1f3firefox.xpi/package.json'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at FirefoxProfile._addonDetails (/home/vlad/Documents/click-to-call/node_modules/firefox-profile/lib/firefox_profile.js:635:20)
    at FirefoxProfile._installExtension (/home/vlad/Documents/click-to-call/node_modules/firefox-profile/lib/firefox_profile.js:549:8)
    at FirefoxProfile.addExtension (/home/vlad/Documents/click-to-call/node_modules/firefox-profile/lib/firefox_profile.js:319:8)
    at /home/vlad/Documents/click-to-call/node_modules/firefox-profile/lib/firefox_profile.js:333:12
    at /home/vlad/Documents/click-to-call/node_modules/firefox-profile/node_modules/async/lib/async.js:718:13
    at async.forEachOf.async.eachOf (/home/vlad/Documents/click-to-call/node_modules/firefox-profile/node_modules/async/lib/async.js:233:13)

I checked and the d410c520-7be1-4492-a3d5-4a8067a2d1f3firefox.xpi dir contains a copy of the addon files that are in /output/firefox/ dir.

Do you know why this happens? Is there a something I can do?

setting up certificate preference

HI,

I tried adding the following code to wdio.config.js to overcome the certificate error.

services: ['firefox-profile'],
firefoxProfile: {
assumeUntrustedCertIssuer: true,
canAssumeUntrustedCertIssuer: true
}

But the firefox is not honoring these values. Are we stripping down these values in this module?

Cannot ignore certificate errors in firefox profile service

From @Nandish47 on July 5, 2018 6:57

The problem

Hi,

I tried to ignore a firefox certificate error 'Your connection is not secure' which usually occurs if certificate is not trusted by using wdio-firefox-profile-service from wdio.conf.js.

services: ['firefox-profile'],

firefoxProfile: {
assumeUntrustedCertIssuer: true,
canAssumeUntrustedCertIssuer: true
},

But WebdriverIO fails to get past these errors. Are the key values ignoring certificates changed?

Environment

  • WebdriverIO version: ^2.0.2
  • Node.js version: v8.11.2
  • if wdio testrunner, running synchronous or asynchronous tests: running synchronous
  • Additional wdio packages used (if applicable):
    wdio-firefox-profile-service: ^0.1.2

Copied from original issue: webdriverio/webdriverio#2791

Breaking change in firefox-profile

Hi,
I am the maintainer of firefox-profile package. This is just a heads-up that I am about to publish a new 1.0 package that introduces a breaking change: Firefox.prototype.encoded(cb) now expects an error-first callback (encoded(function (err, base64Profile) {})). So if you decide to update your package dependencies, you might want to update this line (... and also handle the error...).

Fails to set profile in newer Firefox/Geckodriver versions

The profile defined in wdio.conf is not set in newer versions of firefox and geckodriver

Firefox: 56.0
geckodriver: 0.19.0
selenium-server-standalone: 3.6.0

According to saadtazi/firefox-profile-js#95 the browser capabilities changed and the profile should be set like so:

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

Instead of the old definition

cap.firefox_profile = zippedProfile;

Update to latest firefox-profile package

Hey folks,

Could you please push an update to this package? You already merged the PR that bumps up firefox-profile to 0.4.6 here: #4

We'd need to use the latest firefox-profile because it supports Firefox Web Extensions.
We forked the repo temporarily to get around the issue, but it's a poor long term solution, especially because NPM behaves badly when installing from a forked repo (doesn't build correctly).

Thank you!

test command

Hello webdriverioskis

I copied this repository and started changing everything from 'firefox' to 'chrome'.

My question is about the npm test command:

    "test": "wdio test/wdio.conf.js"

Could you please explain in a paragrah to me the nature of this test? I do not understand it.

firefoxProfile object overwrites supplied capabilities

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;

New release

There is no commit since may and no open issue, however the changes are important since the last release because the firefox-profile versionn has been updated.

Is there any reason for not releasing a new version?

Profile is overriding other moz:options

If other options are provided in moz:firefoxOptions they are being overriden by the profile. This disable for example the option to run headless (args: [-headless]).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.