Change focus to the parent context. If the current context is the top level browsing context, the context remains unchanged.

Usage

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Example

 this.demoTest = function (browser) {
   browser.frameParent(function(result) {
     console.log(result);
   });
}

W3C WebDriver spec