Permalink
Browse files

back()

  • Loading branch information...
1 parent 1862df3 commit b5f4a9f9c772c2e280f73e52455bf36eb159e622 Phil Sarin committed May 5, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/main.js
View
@@ -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;

0 comments on commit b5f4a9f

Please sign in to comment.