From e0a9cd5c0862a10ffe000a2d99b59f53c68c187b Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Sat, 13 May 2017 13:45:33 -0700 Subject: [PATCH] Phantom's WebPage.injectJs should return boolean This patch fixes Phantom Shim WebPage.injectJs to return boolean. --- phantomjs/WebPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phantomjs/WebPage.js b/phantomjs/WebPage.js index dca116eabce..4acae377377 100644 --- a/phantomjs/WebPage.js +++ b/phantomjs/WebPage.js @@ -120,8 +120,9 @@ class WebPage { if (!fs.existsSync(filePath)) filePath = path.resolve(this.libraryPath, filePath); if (!fs.existsSync(filePath)) - return; + return false; await(this._page.injectFile(filePath)); + return true; } /**