astrolabe icon indicating copy to clipboard operation
astrolabe copied to clipboard

Page.create returns { context : undefined } with protractor 1.0.0-rc1 and node 0.10.25

Open crocket opened this issue 11 years ago • 2 comments

I'm not sure why it does so.

crocket avatar Jul 13 '14 06:07 crocket

Experiencing the same issue. Our maven was pointed at 0.24 version and when I just installed the latest protractor version, this.context now returns undefined.

Did you find a solution or cause?

Joseph-Bittman avatar Dec 29 '14 17:12 Joseph-Bittman

in my astrolabe/page.js, I found this line: exports = module.exports = Base.extend(function () { this.context = this.driver; }, {

I changed it to: exports = module.exports = Base.extend(function () { this.context = browser.driver; }, {

and now things are working.

Joseph-Bittman avatar Dec 29 '14 17:12 Joseph-Bittman