senthanal / gulp-jasmine-webdriverio Goto Github PK
View Code? Open in Web Editor NEWgulp-jasmine-webdriverio is a Gulp plugin to run Selenium tests with Jasmine and WebdriverIO
License: MIT License
gulp-jasmine-webdriverio is a Gulp plugin to run Selenium tests with Jasmine and WebdriverIO
License: MIT License
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
Any plans to upgrade webdriverio version. I am using this package but need to a newer version of webdriverio.
Great work with this repo.
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?
https://github.com/senthanal/gulp-jasmine-webdriverio/blob/master/index.js#L16
Currently errors out when phantomjs is not installed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.