Code Monkey home page Code Monkey logo

gulp-jasmine-webdriverio's People

Contributors

sandra-arato avatar senthanal avatar spaceribs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gulp-jasmine-webdriverio's Issues

Built-in node modules should be removed from the dependency list in package.json

Hi @senthanal,

I've found an issue with the package.json, as it references 2 dependencies that should not be there: fs and http. Both of these are shipped with node, so there's no need marking them there.

This causes troubles if I need to use the fs module, as it automatically installs a fake 'fs' and 'http' npm module, that overwrites the default, built in node modules. Here's a stack overflow about the problem:
Web scrapping with CasperJS returns strange error that isn't documented

Please remove lines 46 and 49 from package.json, thanks :)

Ps: I can also create a pr later this week, just putting this issue here in case you have time to resolve it

Update webdriverio version

Any plans to upgrade webdriverio version. I am using this package but need to a newer version of webdriverio.

Great work with this repo.

Syntax error in WebDriverIo callback causes selenium processes to be left running

i'm trying to switch from using webdriverio with gulp to using jasmine. I really like how easy this plugin works, but I've run into an odd problem that can cause a lot of frustration in the development cycle. If you have a syntax error in a webdriver.io callback (see example below), this plugin will cause gulp to just error out and never cleanup any server resources or allow subsequent tasks to not be executed. I have noticed that the gulp-webdriver plugin does handle this correctly.

To reproduce, change test.js to be the following:

describe('gulp-jasmine-webdriverio test', function () {
    it('checks if title contains the search query', function(done) {
        browser
            .url('https://github.com/senthanal/gulp-jasmine-webdriverio')
            .getTitle(function(err,title) {
                exxxxxxxpect(title).toEqual('senthanal/gulp-jasmine-webdriverio · GitHub');
            })
            .call(done);
    });

});

Then run, and you'll see the following error results:

[09:44:20]:  RESULT      {"applicationCacheEnabled":false,"rotatable":false,"mobileEmulationEnabled":false,"chrome":{"userDataDir":"/var/folders/rc/0r5nsf9j03b1shybxsngdm580000gp/T/.org.chromium.Chromium.Xe3Gi9"},"takesHeapSnapshot":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"version":"43.0.2357.132","platform":"MAC","browserConnectionEnabled":false,"nativeEvents":true,"acceptSslCerts":true,"webdriver.remote.sessionid":"24e1ee0f-de63-4936-b91e-a5e4ee4509ed","locationContextEnabled":true,"webStorageEnabled":true,"browserName":"chrome","takesScreenshot":true,"javascriptEnabled":true,"cssSelectorsEnabled":true}
[09:44:20] run jasmine tests
[09:44:20]:  COMMAND    POST     "/wd/hub/session/24e1ee0f-de63-4936-b91e-a5e4ee4509ed/url"
[09:44:20]:  DATA        {"url":"https://github.com/senthanal/gulp-jasmine-webdriverio"}
[09:44:22]:  COMMAND    GET      "/wd/hub/session/24e1ee0f-de63-4936-b91e-a5e4ee4509ed/title"
[09:44:22]:  DATA        {}
[09:44:22]:  RESULT      senthanal/gulp-jasmine-webdriverio · GitHub
/Users//projects/github/gulp-jasmine-webdriverio/usecases/test.js:6
                exxpect(title).toEqual('senthanal/gulp-jasmine-webdriverio · G
                ^
ReferenceError: exxpect is not defined
    at WebdriverIO.<anonymous> (/Users/projects/github/gulp-jasmine-webdriverio/usecases/test.js:6:17)
    at WebdriverIO.<anonymous> (/Users/projects/github/gulp-jasmine-webdriverio/node_modules/webdriverio/lib/utils/PromiseHandler.js:152:26)
    at /Users/projects/github/gulp-jasmine-webdriverio/node_modules/webdriverio/node_modules/chainit/index.js:137:22
    at /Users/projects/github/gulp-jasmine-webdriverio/node_modules/webdriverio/lib/commands/getTitle.js:43:9
    at /Users/projects/github/gulp-jasmine-webdriverio/node_modules/webdriverio/lib/commands/getTitle.js:39:13
    at fn (/Users/projects/github/gulp-jasmine-webdriverio/node_modules/async/lib/async.js:638:34)
    at Immediate._onImmediate (/Users/projects/github/gulp-jasmine-webdriverio/node_modules/async/lib/async.js:554:34)
    at processImmediate [as _immediateCallback] (timers.js:358:17)

Any suggestions for how to fix this?

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.