Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

back()

  • Loading branch information...
commit b5f4a9f9c772c2e280f73e52455bf36eb159e622 1 parent 1862df3
@pdsarin pdsarin authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/main.js
View
14 lib/main.js
@@ -214,7 +214,19 @@ webdriver.prototype.refresh = function(cb) {
);
req.write('');
req.end();
-}
+};
+
+webdriver.prototype.back = function(cb) {
+ var _this = this;
+ var req = http.request(
+ _this.getOpts({url: '/back'}),
+ function(res) {
+ if (cb){ cb(); }
+ }
+ );
+ req.write('');
+ req.end();
+};
webdriver.prototype.setWaitTimeout = function(ms, cb) {
var _this = this;
Please sign in to comment.
Something went wrong with that request. Please try again.