Comparing version 0.0.10 to 0.0.11
@@ -1,2 +0,3 @@ | ||
var http = require("http"); | ||
var http = require("http") | ||
, EventEmitter = require('events').EventEmitter; | ||
@@ -74,6 +75,12 @@ var strip = function strip(str) { | ||
} | ||
this.emit('command', opt['method'], over.url || '--'); | ||
return opt; | ||
} | ||
EventEmitter.call(this); | ||
}; | ||
webdriver.prototype.__proto__ = EventEmitter.prototype; | ||
webdriver.prototype.init = function(desired, cb) { | ||
@@ -120,2 +127,4 @@ var _this = this; | ||
_this.sessionID = locationArr[locationArr.length - 1]; | ||
_this.emit('status', "\nDriving the web on session: "+ _this.sessionID+"\n"); | ||
if (cb) { cb(null, _this.sessionID) } | ||
@@ -157,3 +166,6 @@ }); | ||
), function(res) { | ||
if (cb){ cb(); } | ||
_this.emit('status', "\nEnding your web drivage..\n"); | ||
if (cb) { | ||
cb(); | ||
} | ||
}); | ||
@@ -160,0 +172,0 @@ |
{ "name" : "wd" | ||
, "description" : "WebDriver/Selenium 2 node.js client" | ||
, "tags" : ["web", "automation", "browser", "javascript"] | ||
, "version" : "0.0.10" | ||
, "version" : "0.0.11" | ||
, "author" : "Adam Christian <adam.christian@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
@@ -19,2 +19,6 @@ # WD.js -- A light weight WebDriver/Se2 client for node.js | ||
## License | ||
* License - Apache 2: http://www.apache.org/licenses/LICENSE-2.0 | ||
## Usage | ||
@@ -21,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
21992
13
0
610
97