Skip to content

Commit

Permalink
conform to jsonwp in ability to pass element to frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Mar 26, 2013
1 parent 129b734 commit 943e815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/webdriver.js
Expand Up @@ -541,6 +541,10 @@ webdriver.prototype.frame = function(frameRef, cb) {
cb = frameRef;
frameRef = null;
}
if(typeof(frameRef.value) !== "undefined"){
// we have an element object
frameRef = {ELEMENT: frameRef.value};
}
this._jsonWireCall({
method: 'POST'
, relPath: '/frame'
Expand Down

0 comments on commit 943e815

Please sign in to comment.