return runnerType == null ? CLIENT : RunnerType.valueOf(runnerType.toUpperCase());
}
public String service(String userAgent, String mode, String id, RunnerType runnerType,
Long timeout, Integer uploadSize) {
UserAgentParser parser = new UserAgentParser();
parser.parse(userAgent);
SlaveBrowser slaveBrowser =
browserHunter.captureBrowser(id, parser.getName(), parser.getVersion(), parser.getOs(),
timeout, mode, runnerType, uploadSize);
return slaveBrowser.getCaptureUrl();
}