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

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Usage

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

W3C WebDriver spec: