Skip to content

Commit 69bedbb

Browse files
committed
Set the content type in proxy settings test.
Without this, the htmlunit driver believes we've returned a page of text, and then can't find elements.
1 parent 3f0fc3d commit 69bedbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/client/test/org/openqa/selenium/ProxySettingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ private WebServer createSimpleHttpServer(final String responseHtml) {
235235
public void handleHttpRequest(
236236
HttpRequest request, HttpResponse response, HttpControl control) {
237237
response.charset(Charsets.UTF_8)
238+
.header(HttpHeaders.CONTENT_TYPE, "text/html")
238239
.content(responseHtml)
239240
.end();
240241
}

0 commit comments

Comments
 (0)