diff --git a/lib/Page.js b/lib/Page.js index 00120139..977885f9 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -795,6 +795,7 @@ class Page extends EventEmitter { */ async type(selector, text, options) { const handle = await this.$(selector); + console.assert(handle, 'No node found for selector: ' + selector); await handle.type(text, options); await handle.dispose(); }