org.openqa.selenium.chrome.Response Maven / Gradle / Ivy
The newest version!
package org.openqa.selenium.chrome;
public class Response {
//Status code of -1 indicates value is the ID of a ChromeWebElement
private final int statusCode;
private final Object value;
public Response(int statusCode, Object value) {
this.statusCode = statusCode;
this.value = value;
}
public int getStatusCode() {
return statusCode;
}
public Object getValue() {
return value;
}
@Override
public String toString() {
return String.format("(%d: %s)", statusCode, getValue());
}
}