org.openqa.selenium.remote.ResponseCodec Java Examples
The following examples show how to use
org.openqa.selenium.remote.ResponseCodec.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProtocolConverter.java From selenium with Apache License 2.0 | 5 votes |
private ResponseCodec<HttpResponse> getResponseCodec(Dialect dialect) { switch (dialect) { case OSS: return new JsonHttpResponseCodec(); case W3C: return new W3CHttpResponseCodec(); default: throw new IllegalStateException("Unknown dialect: " + dialect); } }
Example #2
Source File: AppiumCommandExecutor.java From java-client with Apache License 2.0 | 4 votes |
protected void setResponseCodec(ResponseCodec<HttpResponse> codec) { setPrivateFieldValue("responseCodec", codec); }