expfactory / expfactory-python

python module for managing experiment factory javascript experiment files, batteries to deploy them to (eg, psiturk), and virtual machines to host the compilation of those things.
http://expfactory.readthedocs.org/
MIT License
4 stars 11 forks source link

Check browser errors in tests.py #137

Open rwblair opened 7 years ago

rwblair commented 7 years ago

If there are issues in an experiment.js this can cause the jspsych.init to fail. Subsequent calls to jsPsych.currentTrial(); will return an empty object causing the test to run indefinitely since expfactory_finished never gets set. Found this by calling browser.get_log('browser')