[phantom_shim] implement deprecated frame switching api

This commit is contained in:
Andrey Lushnikov 2017-07-17 21:04:09 -07:00
parent 2ca08b032b
commit 72b7e50f9e
2 changed files with 29 additions and 1 deletions

View File

@ -91,6 +91,35 @@ class WebPage {
this.onConsoleMessage(text); this.onConsoleMessage(text);
} }
/**
* @return {string}
*/
currentFrameName() {
return this.frameName;
}
/**
* @return {number}
*/
childFramesCount() {
return this.framesCount;
}
/**
* @return {!Array<string>}
*/
childFramesName() {
return this.framesName;
}
/**
* @param {(string|number)} frameName
* @return {boolean}
*/
switchToChildFrame(frame) {
return this.switchToFrame(frame);
}
/** /**
* @return {string} * @return {string}
*/ */

View File

@ -1,4 +1,3 @@
//! unsupported
async_test(function () { async_test(function () {
var p = require("webpage").create(); var p = require("webpage").create();