andresdominguez / elementor

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

problem running elementor #19

Closed bekzg closed 9 years ago

bekzg commented 9 years ago

I am using protractor version: 2.1.0 Elementor version: 1.0.10 Node version: 0.12.4 Environment: windows 7 reproducible: 100%

Couldn't get rid of the problem even after reinstalling protractor and updating webdriver-manager. Something that is puzzling for me it works randomly but fails most of the time.

Steps: Followed the instruction here to install elementor and its dependencies:

$ npm install protractor -g $ webdriver-manager update $ webdriver-manager start

// In another terminal run elementor with an optional url: $ elementor https://angularjs.org

Error report: Creating protractor configuration file Starting protractor Running command: [node C:\Users\xxx_xxx\AppData\Roaming\npm\node_modules\element or\node_modules\protractor-elementor\lib\cli.js --elementExplorer true --debugge rServerPort 6969 C:\Users\xxx_xxx\AppData\Local\Temp\protractor-conf115512-2808- clwb7l] fs.js:77 throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs ^ Error: EBADF, write at Error (native)

bekzg commented 9 years ago

I have not been able to reproduce the issue after installing node 12.2-x64. The issue probably related to the fact that I had x86 version of node running in x64 bit machine => the problem is my test environment, hence should be closed.