Currently, I am utilizing Node version 0.10.30. In Protractor 1.6.1, I successfully managed to escape a single quote character within the ng-show to retrieve a value. For instance:
element.all(by.css('[ng-if="user"]')).all(by.css('[ng-show="user.name === \'Jhonny\'"]').getText()
However, upon updating to Protractor 1.8.0 and 2.0.0, the escaping of characters no longer functions (Upon reverting back to Protractor 1.6.1 post-update, it worked as expected). Consequently, I attempted another snippet of code
element.all(by.css('[ng-if="user"]')).map(function(ele) {return ele;});
The above code leads elementExplorer to crash with the following error:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at Client.addListener (events.js:160:15)
at CommandRepl.evaluate_ (C:\Users\test\AppData\Roaming\npm\node_modules\protractor\lib\debugger\modes\commandRepl.js:111:15)
at CommandRepl.stepEval (C:\Users\test\AppData\Roaming\npm\node_modules\protractor\lib\debugger\modes\commandRepl.js:33:8)
at WdRepl.stepEval_ (C:\Users\test\AppData\Roaming\npm\node_modules\protractor\lib\debugger\clients\explorer.js:48:16)
at Interface.<anonymous> (repl.js:239:12)
at Interface.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
I have made attempts to execute elementExplorer using both Node or directory from Protractor --elementExplorer, yet encountered similar problems on both fronts. Has anyone else faced this issue?