You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
browserstack-local-java version:1.0.3
java version:1.8
os type and version:win 10
Details
The text was updated successfully, but these errors were encountered:
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
Details
The text was updated successfully, but these errors were encountered: