.frame() Suggest edits
Change focus to another frame on the page. If the frame id is missing or null, the server should switch to the page's default content.
Usage
Parameters
Name | Type | description |
---|---|---|
frameId Optional |
string|number | Identifier for the frame to change focus to. |
callback Optional |
function | Optional callback function to be called when the command finishes. |
Example
this.demoTest = function (browser) {
browser.frame('', function(result) {
console.log(result);
});
}