operasoftware/operadriver — Issue #47: org.openqa.selenium.WebDriverException: Unable to extract bundled launcher: Unknown file: null
Author: java-developer
Created: 2012-01-06 17:12:03+00:00
State: open

Hello,

I am trying to run Selenium tests using OperaDriver but they fail to launch because it cannot find the launcher.

I've tried specifying the location as follows but it didn't work:

```
final DesiredCapabilities capabilities = DesiredCapabilities.opera();
capabilities.setCapability("opera.launcher", "/path/to/launcher-mac");
final OperaDriver driver = new OperaDriver(capabilities);
```

The only way I have been able to make it work is by putting a breakpoint on line 88 of OperaLauncherRunnerSettings and modifying the value of the "path" variable.

Environment:

OS: OSX 10.7.2
Selenium: 2.15.0
OperaDriver: 0.8.1

StackTrace:

org.openqa.selenium.WebDriverException: Unable to extract bundled launcher: Unknown file: null
Build info: version: '2.13.0', revision: '14794', time: '2011-11-18 17:49:47'
System info: os.name: 'Mac OS X', os.arch: 'amd64', os.version: '10.7.2', java.version: '1.7.0-u2-b21'
Driver info: driver.version: OperaDriver
at com.opera.core.systems.runner.launcher.OperaLauncherRunnerSettings.launcherPath(OperaLauncherRunnerSettings.java:97)
at com.opera.core.systems.runner.launcher.OperaLauncherRunnerSettings.getLauncher(OperaLauncherRunnerSettings.java:47)
at com.opera.core.systems.runner.launcher.OperaLauncherRunnerSettings.makeLauncherExecutable(OperaLauncherRunnerSettings.java:190)
at com.opera.core.systems.runner.launcher.OperaLauncherRunner.(OperaLauncherRunner.java:120)
at com.opera.core.systems.OperaDriver.(OperaDriver.java:295)

I hope someone can help.

Thanks,

Craig