mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Added frame.waitFor(selector) (#59)
This patch adds `frame.waitFor(selector)` method. Fixes #42.
This commit is contained in:
committed by
Andrey Lushnikov
parent
a0eeb415f2
commit
090ecfa6b9
@@ -561,6 +561,14 @@ class Page extends EventEmitter {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} selector
|
||||
* @return {!Promise<undefined>}
|
||||
*/
|
||||
waitFor(selector) {
|
||||
return this.mainFrame().waitFor(selector);
|
||||
}
|
||||
}
|
||||
|
||||
/** @enum {string} */
|
||||
|
||||
Reference in New Issue
Block a user