You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
When using the node/npm selenium-webdriver module to wrap mocha the wrapped versions
of beforeEach/it/afterEach/etc. do not correctly maintain the `this` value inside the
tests (which is normally a convenient place to share per test data before before/after
hooks and the test).
Fixing this seems to require add a bind call to https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/testing/index.js#L123
Changing the line from:
flow.execute(fn).then(seal(done), done);
To:
flow.execute(fn.bind(this)).then(seal(done), done);
Reported by hkhalsa@quickleft.com on 2014-03-19 20:49:24
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 7105
Reported by
hkhalsa@quickleft.com
on 2014-03-19 20:49:24The text was updated successfully, but these errors were encountered: