Code Monkey home page Code Monkey logo

Comments (6)

rahulmr avatar rahulmr commented on August 10, 2024

@larskendall as per my experience, it is properly downloading gecko driver .
I think you need to configure firefox args properly. Have you tried directConnect: true and standalone server both? It seems to be related to protractor.conf.js. And even the driver update is dependent on protractor + webdriver-manager versions.

$ gulp wd:update
[12:07:05] Using gulpfile D:\projects\portal\gulpfile.js
[12:07:05] Starting 'wd:update'...
[12:07:42] I/update - selenium standalone: file exists D:\projects\portal\node_modules\protractor
\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.3.1.jar
[12:07:42] I/update - selenium standalone: selenium-server-standalone-3.3.1.jar up to date
[12:07:42] I/update - chromedriver: file exists D:\projects\portal\node_modules\protractor\node_m
odules\webdriver-manager\selenium\chromedriver_2.28.zip
[12:07:42] I/update - chromedriver: unzipping chromedriver_2.28.zip
[12:07:43] I/update - chromedriver: chromedriver_2.28.exe up to date
[12:07:49] I/update - geckodriver: file exists D:\projects\portal\node_modules\protractor\node_mo
dules\webdriver-manager\selenium\geckodriver-v0.15.0.zip
[12:07:49] I/update - geckodriver: unzipping geckodriver-v0.15.0.zip
[12:07:49] I/update - geckodriver: geckodriver-v0.15.0.exe up to date
[12:07:49] Finished 'wd:update' after 44 s

My code is as below:

'use strict';
var gulp = require('gulp'),
  gp = require('gulp-protractor');

// Setting up the test task 

gulp.task('wd:update', gp.webdriver_update_specific({
  webdriverManagerArgs: ['--versions.chrome', '2.28']
}));

gulp.task('e2e', ['e2e-analysis', 'wd:update'], function(callback) {
  gulp
    .src(['e2e/**/*.js'])
    .pipe(gp.protractor({
      'configFile': 'protractor.conf.js'
    }))
    .on('error', function(e) {
      // console.log(e);
      throw e;
    })
    .on('end', callback);
});

gulp.task('e2e-analysis', ['e2e-jshint', 'e2e-jscs']);

from gulp-protractor.

rahulmr avatar rahulmr commented on August 10, 2024

It seems many are facing issue with Firefox and gecko driver see here
Closing this issue as it is not related to gulp-protractor.

from gulp-protractor.

rahulmr avatar rahulmr commented on August 10, 2024

@larskendall some more help with webdriver-manager update

$ ./node_modules/.bin/webdriver-manager update --help

Usage:        update [options]
              update help
Description:  install or update selected binaries

Options:
  --out_dir                   Location to output/expect
       [default: D:\projects\portal\node_modules\protractor\node_modules\webdriver-manager\seleni
um]
  --verbose                   Extra console output
  --ignore_ssl                Ignore SSL certificates
  --proxy                     Proxy to use for the install or update command
  --alternate_cdn             Alternate CDN to binaries
  --standalone                Install or update selenium standalone
       [default: true]
  --chrome                    Install or update chromedriver
       [default: true]
  --gecko                     Install or update geckodriver
       [default: true]
  --android                   Update/use the android sdk
  --android-api-levels        Which versions of the android API you want to emulate
       [default: 24]
  --android-archs             Which architectures you want to use in android emulation.  By default it will try to match os.ar
ch()   [default: x86_64]
  --android-platorms          Which platforms you want to use in android emulation
       [default: google_apis]
  --android-accept-licenses   Automatically accept android licenses
  --ie                        Install or update 32-bit ie driver
  --ie32                      Install or update 32-bit ie driver
  --ie64                      Update: install or update 64-bit IE driver. Start: use installed x64 IE driver.
--versions.standalone       Optional seleniuim standalone server version (use 'latest' to get the most recent version)
       [default: latest]
  --versions.chrome           Optional chrome driver version (use 'latest' to get the most recent version)
       [default: latest]
  --versions.appium           Optional appium version
       [default: 1.6.0]
  --versions.android          Optional android sdk version
       [default: 24.4.1]
  --versions.gecko            Optional gecko driver version
       [default: latest]
  --versions.ie               Optional internet explorer driver version (use 'latest' to get the most recent version)
       [default: latest]

from gulp-protractor.

peggybear avatar peggybear commented on August 10, 2024

I'm having the same issue with running Firefox. @larskendall were you able to find a solution? I would love to get some help with this.

from gulp-protractor.

larskendall avatar larskendall commented on August 10, 2024

@peggybear I'm afraid not. I had to move on to some other tasks and haven't gotten back to this one yet, so I'm not sure if the issue I was having has been resolved or not. Sorry I can't be of more help.

from gulp-protractor.

rahulmr avatar rahulmr commented on August 10, 2024

@peggybear Have you tried the solution I have provided?

from gulp-protractor.

Related Issues (20)

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.