diff --git a/lib/protractor.js b/lib/protractor.js index 4707b93a7..aaf153722 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -192,8 +192,9 @@ var Protractor = function(webdriverInstance, opt_baseUrl, opt_rootElement) { // Internet Explorer does not accept data URLs, which are the default // reset URL for Protractor. // Safari accepts data urls, but SafariDriver fails after one is used. + // PhantomJS produces a "Detected a page unload event" if we use data urls var browserName = caps.get('browserName'); - if (browserName === 'internet explorer' || browserName === 'safari') { + if (browserName === 'internet explorer' || browserName === 'safari' || browserName === 'phantomjs') { self.resetUrl = 'about:blank'; } });