-
-
Notifications
You must be signed in to change notification settings - Fork 223
Selenium tests failing with PhantomJS #418
Description
Although I accepted #412 knowing the phantomjs tests were failing, (I thought i was my system.) it appears that phantomjs is actually finding some potential problems.
I've attached the log below, but the short of it is:
phantomjs is indicating errors in javascript while processing various files. We are not seeing these errors in the log for chrome or firefox.
If you look at the code, line 93 of bookfuncs.js does assume that RunestoneBase is defined, and in fact runestonebase.js is loaded several lines before bookfuncs.js
Is it possible that there is some behavior in phantomjs that is creating race conditions? If bookfuncs.js fails to load to completion then I'm not surprised that bad things are happening.
I'm seeing all of these tests fail on linux and macOS, but I'm not sure that @bjones1 is seeing the same under windows...
Anyone have any idea what might be going on?
Full Log of PhantomJS
[INFO - 2017-07-10T20:20:23.546Z] GhostDriver - Main - running on port 62430
[INFO - 2017-07-10T20:20:23.926Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-07-10T20:20:23.926Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.customHeaders: - {}
[INFO - 2017-07-10T20:20:23.926Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"mac-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-07-10T20:20:23.926Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 344bcd20-65ad-11e7-99cf-cf12ab24e2e0
[ERROR - 2017-07-10T20:20:24.145Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.145Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/bookfuncs.js:93)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.186Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: ActiveCode
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.186Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/timed_activecode.js:6)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.187Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.187Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/mchoice.js:23)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.187Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.187Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/timed.js:21)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.188Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.188Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/clickable.js:20)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.216Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.216Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/datafile.js:21)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.217Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.217Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/dragndrop.js:21)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.217Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: FITB
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.217Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/timedfitb.js:7)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.222Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.222Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/parsons.js:1023)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/poll.js:7)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/reveal.js:13)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: ShortAnswer
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.223Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/timed_shortanswer.js:6)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.224Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.224Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/tabbedstuff.js:14)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.253Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - msg: ReferenceError: Can't find variable: RunestoneBase
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:24.253Z] Session [344bcd20-65ad-11e7-99cf-cf12ab24e2e0] - page.onError - stack:
global code (http://127.0.0.1:8088/_static/user-highlights.js:9)
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-07-10T20:20:25.195Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1499718025174
phantomjs://platform/console++.js:263 in error