Git Product home page Git Product logo

Comments (7)

sandys avatar sandys commented on June 12, 2024

i have the exact same issue. i have a feeling this is because of gulp which is not passing on signals correctly.

from gulp-webdriver.

gpolyn avatar gpolyn commented on June 12, 2024

What is the status of this issue?

from gulp-webdriver.

jsdtaylor avatar jsdtaylor commented on June 12, 2024

Not sure why this got moved from webdriverio as grunt-webdriver exhibits it as well. Any news?

from gulp-webdriver.

christian-bromann avatar christian-bromann commented on June 12, 2024

I am not using gulp-webdriver so if anyone has a solution to this any PRs would be appreciated

from gulp-webdriver.

stsvilik avatar stsvilik commented on June 12, 2024

There is one solution that I found to be working - its not ideal but it is something. Returned through2 stream has an event finish which you could use to exit the process.
Ex.

webdriver({
    baseUrl: 'http://localhost:' + config.e2e.port,
    specs: config.e2e.specs
}).on(`finish`, () => process.exit(0));

from gulp-webdriver.

jasp402 avatar jasp402 commented on June 12, 2024

@stsvilik effectively closing the process, the only bad thing is that it eliminates all the underlying sub-processes. I have built a nodeJS server and when applying this solution it stops the service.

There should be some way to get PID and stop just that process.
Maybe you can use process.kill (pid [, signal])

from gulp-webdriver.

stsvilik avatar stsvilik commented on June 12, 2024

@jasp402 If only we had reference to the right process which spawns webdriver, we could kill just that.

from gulp-webdriver.

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.