mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Refactor Frame.waitForSelector method
Refactor Frame.waitForSelector to make room for Frame.waitForFunction implementation. This patch: - removes AwaitedElement class which proved to be confusing, and introduces a more straight-forward WaitTask. - refactors the mutation observer to return true in case of successful waiting or false in case of timeout. References #91
This commit is contained in:
@@ -3,7 +3,6 @@ const mdBuilder = require('./MDBuilder');
|
||||
const Documentation = require('./Documentation');
|
||||
|
||||
const EXCLUDE_CLASSES = new Set([
|
||||
'AwaitedElement',
|
||||
'Connection',
|
||||
'EmulationManager',
|
||||
'FrameManager',
|
||||
@@ -12,6 +11,7 @@ const EXCLUDE_CLASSES = new Set([
|
||||
'NetworkManager',
|
||||
'ProxyStream',
|
||||
'TaskQueue',
|
||||
'WaitTask',
|
||||
]);
|
||||
|
||||
const EXCLUDE_METHODS = new Set([
|
||||
|
||||
Reference in New Issue
Block a user