JSONObject payload = getRequest().getPayload();
String type = payload.optString("type");
if ("page load".equals(type)) {
long timeout = payload.getLong("ms");
// meant for driver.get command
CommandConfiguration conf = getSession().configure(WebDriverLikeCommand.URL);
conf.set("page load", timeout);
} else {
throw new UnsupportedCommandException("timeout " + payload + " NI");
}
Response res = new Response();
res.setSessionId(getSession().getSessionId());