-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
No error while running selenium-server locally without installing Java first. #3105
Comments
hey @garg3133 is this the correct file to be changed ?
|
I've added a condition which throws an error if the variable doesn't exist. let java = 'java';
if (process.env['JAVA_HOME']) {
java = path.join(process.env['JAVA_HOME'], 'bin/java');
} else {
throw new Error(
'Java is not installed or JAVA_HOME environment variable is not set.'
);
} Is this fine? |
8 tasks
Closed
8 tasks
hello, is this issue still unfixed? if so can i work on it? |
Could you please assign this issue to me, @garg3133? |
Harshit-7373
added a commit
to Harshit-7373/nightwatch
that referenced
this issue
Oct 30, 2024
No error while running selenium-server locally without installing Java first. nightwatchjs#3105.... github-Harshit-7373. 1. Terminal Check for Java: I added a command to verify Java’s presence before running Nightwatch. 2. Made the necessary changes in the nightwatch.json file......
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Nightwatch does not throw any error while running selenium-server locally if Java is not installed on the system.
Sample test
sampleTest.js
// Any test would do
Run with command
Verbose output
debug.log
Configuration
nightwatch.json
Your Environment
nightwatch --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: