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

com.browserstack.local.LocalException: #48

Open
pallavkrishna opened this issue Dec 26, 2019 · 0 comments
Open

com.browserstack.local.LocalException: #48

pallavkrishna opened this issue Dec 26, 2019 · 0 comments

Comments

@pallavkrishna
Copy link

pallavkrishna commented Dec 26, 2019

Unable to establish the browserstack local connection

Actual Behavior

java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
at com.browserstack.local.Local.runCommand(Local.java:200)
at com.browserstack.local.Local.start(Local.java:66)

Steps to Reproduce the Problem

1.updated the mentioned piece of code in my driver capabilities script
2.Started executing script and facing the 'com.browserstack.local.LocalException:'
##Used snippet
Local bsLocal = new Local();
HashMap<String, String> bsLocalArgs = new HashMap<>();
bsLocalArgs.put("username", "key");
bsLocalArgs.put("binarypath", "binary_path");
bsLocalArgs.put("forcelocal", "true");
try {
bsLocal.start(bsLocalArgs);
System.out.println(bsLocal.isRunning());
} catch (Exception e) {
e.printStackTrace();
}

Platform details

  1. browserstack-local-java version:1.0.3
  2. java version:1.8
  3. os type and version:win 10

Details

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

1 participant