Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Getting Cannot find node install path node-native error in eclipse #4899

@Gaurav08021989

Description

@Gaurav08021989

Hi there!

I am getting Cannot find node install path node-native error when trying to execute my protractor project in eclipse. But its working fine when executed through command prompt.

PFB the details of my files

Node Version: ``10.5.0

Protractor Version: ``5.3.2

Angular Version: ``

Browser(s): ``Internet Explorer

Operating System and Version ``Windows 10

Your protractor configuration file
exports.config = {
//directConnect: true,
//TO RUN UNDER IE MANUALLY LAUNCH DRIVER IN node_modules\protractor\node_modules\selenium<ie_driver>
seleniumAddress: 'http://localhost:4444/wd/hub',
//seleniumAddress: 'http://localhost:5555',
/capabilities: {
browserName: 'internet explorer',
ignoreProtectedModeSettings: true,
nativeEvents: false,
unexpectedAlertBehaviour: 'accept',
ignoreProtectedModeSettings: true,
enablePersistentHover: true,
'disable-popup-blocking': true
},
/

capabilities: {
'browserName': 'chrome'
},

specs: [
'zoo_spec.js'
],
framework: 'jasmine',
localSeleniumStandaloneOpts: {
jvmArgs: [
'-Dwebdriver.ie.driver=./node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer3.13.0.exe'
]
},
jasmineNodeOpts: {
defaultTimeoutInterval: 60000
}
}

A relevant example test
zoo.js

'use strict';

describe("Test site for input field",function(){
beforeAll(() => {
browser.ignoreSynchronization = true;
browser.driver.get("http://automationcop.blogspot.com");
browser.driver.sleep(3000);
});
it("to test input field and check output",function() {
for(var i=0;i<1;i++){
browser.driver.findElement(by.id("firstname")).clear();
browser.driver.findElement(by.id("firstname")).sendKeys("Gaurav");
browser.driver.findElement(by.id("lname")).clear();
browser.driver.findElement(by.id("lname")).sendKeys("Shetty");
element(by.id("male")).click().then(function(){ console.log("clicked"); });
element(by.buttonText('Submit')).click();
browser.driver.sleep(1000);
element(by.id('home')).click();
browser.driver.sleep(1000);
element(by.id("myCheck")).click();
browser.driver.sleep(1000);
var buttonSim=element(by.xpath(".//*[contains(text(),'Click Me!')]"))
buttonSim.click();
browser.switchTo().alert().accept();
}
browser.driver.sleep(1000);
});
});
Same issue has been posted in angelozerr/angularjs-eclipse#207.. but there is no solution mentioned
Steps to reproduce the bug: Run the zoo.js file
The URL you are running your tests against (if relevant):http://automationcop.blogspot.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions