@NeedsLocalEnvironment
public void detachBrowser() {
OperaSettings settings = new OperaSettings();
settings.setDetach(true);
TestDriver driver = new TestDriverBuilder().using(settings).get();
Integer processID = driver.utils().getPID();
assertNotNull("Failed to get process ID from driver", processID);
driver.quit();
assertFalse("OperaDriver should not be connected to Opera", driver.getServices().isConnected());
assertTrue("Opera should be running", ProcessManager.isPidRunning(processID));
ProcessManager.killPID(processID);
}