Added frame.waitFor(selector) (#59)

This patch adds `frame.waitFor(selector)` method.

Fixes #42.
This commit is contained in:
Aleksey
2017-07-07 15:39:02 -07:00
committed by Andrey Lushnikov
parent a0eeb415f2
commit 090ecfa6b9
4 changed files with 104 additions and 0 deletions

View File

@@ -561,6 +561,14 @@ class Page extends EventEmitter {
});
}
}
/**
* @param {string} selector
* @return {!Promise<undefined>}
*/
waitFor(selector) {
return this.mainFrame().waitFor(selector);
}
}
/** @enum {string} */