andresdominguez / elementor

An improved element finder for protractor
MIT License
339 stars 27 forks source link

Elementor does not running on protractor version 4.0.9 #45

Open akbar-10p opened 7 years ago

akbar-10p commented 7 years ago

I am getting this error when I execute command elementor https://any angular URL

Creating protractor configuration file Starting protractor Running command: [node C:\Users\akber\AppData\Roaming\npm\node_modules\elementor \node_modules\protractor\built\cli.js --elementExplorer true --debuggerServerPor t 6969 C:\Users\akber\AppData\Local\Temp\protractor-conf116823-9388-1x0wdop] [17:55:17] I/hosted - Using the selenium server at http://localhost:4444/wd/hub [17:55:19] I/protractor - [17:55:19] I/protractor - ------- Element Explorer ------- [17:55:19] I/protractor - Starting WebDriver debugger in a child process. Elemen t Explorer is still beta, please report issues at github.com/angular/protractor [17:55:19] I/protractor - [17:55:19] I/protractor - Type to see a list of locator strategies. [17:55:19] I/protractor - Use the list helper function to find elements by str ategy: [17:55:19] I/protractor - e.g., list(by.binding('')) gets all bindings. [17:55:19] I/protractor - Server listening on 127.0.0.1:6969 Done starting protractor Starting elementor Elementor is listening on http://localhost:13000 Getting page at: http://any angular URL events.js:141 throw er; // Unhandled 'error' event ^

Error: write EPIPE at exports._errnoException (util.js:907:11) at Socket._writeGeneric (net.js:697:26) at Socket._write (net.js:716:8) at doWrite (_stream_writable.js:300:12) at writeOrBuffer (_stream_writable.js:286:5) at Socket.Writable.write (_stream_writable.js:214:11) at Socket.write (net.js:642:40) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:153:18)

andresdominguez commented 7 years ago

Hello. I just published a new version 2.1.0. It should work with the latest version of protractor (4.0.9)

MikiPopovic commented 7 years ago

Just installed Elementor and also geting throw er; // Unhandled 'error' event Browser starts and chrashes. If I just start it with command: elementor it starts fine, but when I try to locate an element and get results in Protractor window, it crashes again.

Here's the log:

osboxes@osboxes:~$ elementor Creating protractor configuration file Starting protractor Running command: [node /usr/lib/node_modules/elementor/node_modules/protractor/built/cli.js --elementExplorer true --debuggerServerPort 6969 /tmp/protractor-conf1161018-4224-1ak7zcy.f1k4eu3di] [20:58:20] I/hosted - Using the selenium server at http://localhost:4444/wd/hub [20:58:22] I/protractor - [20:58:22] I/protractor - ------- Element Explorer ------- [20:58:22] I/protractor - Starting WebDriver debugger in a child process. Element Explorer is still beta, please report issues at github.com/angular/protractor [20:58:22] I/protractor - [20:58:22] I/protractor - Type to see a list of locator strategies. [20:58:22] I/protractor - Use the list helper function to find elements by strategy: [20:58:22] I/protractor - e.g., list(by.binding('')) gets all bindings. [20:58:22] I/protractor - Server listening on 127.0.0.1:6969 Done starting protractor Starting elementor Elementor is listening on http://localhost:13000 Elementor is ready! Testing suggestions [ { name: 'byCss', locator: 'by.css(\'button[type="submit"]\')', countExpression: 'element.all(by.css(\'button[type="submit"]\')).count()' }, { name: 'byCss', locator: 'by.css(\'button[ng-click="$controller.submit()"]\')', countExpression: 'element.all(by.css(\'button[ng-click="$controller.submit()"]\')).count()' }, { name: 'byCss', locator: 'by.css(\'button[ng-disabled="!$controller.selectedEntity"]\')', countExpression: 'element.all(by.css(\'button[ng-disabled="!$controller.selectedEntity"]\')).count()' }, { name: 'byCss', locator: 'by.css(\'button.l-block.l-width-full.border-radius-2.btn.btn-lg.btn-success.text-20.ptb-20\')', countExpression: 'element.all(by.css(\'button.l-block.l-width-full.border-radius-2.btn.btn-lg.btn-success.text-20.ptb-20\')).count()' }, { name: 'byCss', locator: 'by.css(\'.l-block.l-width-full.border-radius-2.btn.btn-lg.btn-success.text-20.ptb-20\')', countExpression: 'element.all(by.css(\'.l-block.l-width-full.border-radius-2.btn.btn-lg.btn-success.text-20.ptb-20\')).count()' }, { name: 'byButtonText', locator: 'by.buttonText(\'Continue\')', countExpression: 'element.all(by.buttonText(\'Continue\')).count()' } ] Connected. Sending command: element.all(by.css('button[type="submit"]')).count() events.js:160 throw er; // Unhandled 'error' event ^

hasanlussa commented 7 years ago

protractor 5 already release guys, is this issue still relevant

gustavolira commented 7 years ago

same problem here

TamerHussien commented 6 years ago

i was having the problem cause i didn't install java ..... after install it working perfectly