Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path must be a String. Received undefined #199

Open
hemantkrbajaj opened this issue May 29, 2016 · 6 comments
Open

Path must be a String. Received undefined #199

hemantkrbajaj opened this issue May 29, 2016 · 6 comments

Comments

@hemantkrbajaj
Copy link

Hi team i am facing the below issue while running the protractor test with eclipse:
path.js:8
throw new TypeError('Path must be a string. Received ' +
^

TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.win32.join (path.js:221:5)
at C:\Users\Hemant Bajaj\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\safari.js:84:29
at Object. (C:\Users\Hemant Bajaj\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\safari.js:98:3)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)

Test.js :
describe('angularjs homepage todo list', function(){
it('should add a todo', function() {
browser.get('http://www.angularjs.org');
element(by.model('todotext')).sendKeys('write a protractor test');
});
});

config.js :
exports.config = {
directConnect: true,
//seleniumAddress: 'http://localhost:4444/wd/hub',
browserName: 'chrome',
specs: ['Test.js']
};

both files present at same location.

Environment:
Windows 10
Eclipse Kepler
AngularJS 1.2.0 -Snapshot plugin
NodeJsEclipse Plugin.

Please help.
Thanks!!
Hemant

@angelozerr
Copy link
Owner

angelozerr commented May 29, 2016

I'm not a big expert with protractor. Have you the same problem when you run protractor without eclipse?

@hemantkrbajaj
Copy link
Author

@angelozerr No, it worked with the command prompt.

@angelozerr
Copy link
Owner

@hemantkrbajaj I have no time to study the problem today.

@bhreinb
Copy link

bhreinb commented Aug 2, 2016

Hello there,

This would seem to be an issue for me too. I believe it to be eclipse related. I get the exact same error @hemantkrbajaj mentions above

path.js:8
throw new TypeError('Path must be a string. Received ' +
^

TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.win32.join (path.js:221:5)
at C:\Users\bxb145\workspace\Sample\node_modules\selenium-webdriver\safari.js:84:29
at Object. (C:\Users\bxb145\workspace\Sample\node_modules\selenium-webdriver\safari.js:98:3)
at Module._compile (module.js:397:26)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

I cloned the exact same project to webstorm and I'm able to run the project every time. Let me know if you need any more help on reproducing this? I'm also able to run the project outside of eclipse too from the command line.

@santhosh12992
Copy link

Even i am also facing exactly the same issue. Fingers crossed...

@lnallan
Copy link

lnallan commented Mar 4, 2018

I am facing the same issue too....with nodeclipse debugger and enide IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants