From 69bedbba3e4fe79d0350dd63f16809c79b472433 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Thu, 12 Dec 2013 22:03:23 +0000 Subject: [PATCH] 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. --- java/client/test/org/openqa/selenium/ProxySettingTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/client/test/org/openqa/selenium/ProxySettingTest.java b/java/client/test/org/openqa/selenium/ProxySettingTest.java index b611ac1f27985..d595369dc5a13 100644 --- a/java/client/test/org/openqa/selenium/ProxySettingTest.java +++ b/java/client/test/org/openqa/selenium/ProxySettingTest.java @@ -235,6 +235,7 @@ private WebServer createSimpleHttpServer(final String responseHtml) { public void handleHttpRequest( HttpRequest request, HttpResponse response, HttpControl control) { response.charset(Charsets.UTF_8) + .header(HttpHeaders.CONTENT_TYPE, "text/html") .content(responseHtml) .end(); }