File tree 3 files changed +5
-2
lines changed
src/test/java/net/continuumsecurity
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ dependencies {
117
117
testCompile ' org.hamcrest:hamcrest-all:1.3'
118
118
testCompile (' org.seleniumhq.selenium:selenium-java:3.12.0' ) { exclude group : ' junit' }
119
119
testCompile ' org.seleniumhq.selenium:selenium-api:3.12.0'
120
+ testCompile ' org.seleniumhq.selenium:htmlunit-driver:2.29.0'
120
121
testCompile ' log4j:log4j:1.2.17'
121
122
testCompile ' args4j:args4j:2.0.16'
122
123
testCompile ' commons-configuration:commons-configuration:1.8'
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public int startZAP(String zapPath) throws Exception {
48
48
params .add ("-config" ); params .add ("api.key=" +API_KEY );
49
49
Config .getInstance ().setProxyApi (API_KEY );
50
50
String upstreamProxyHost = Config .getInstance ().getUpstreamProxyHost ();
51
- if (upstreamProxyHost .isEmpty ()) {
51
+ if (! upstreamProxyHost .isEmpty ()) {
52
52
int upstreamProxyPort = Config .getInstance ().getUpstreamProxyPort ();
53
53
log .info ("Setting upstream proxy for ZAP to: " +upstreamProxyHost +":" +upstreamProxyPort );
54
54
params .add ("-config" ); params .add ("connection.proxyChain.hostName=" +upstreamProxyHost );
Original file line number Diff line number Diff line change 29
29
import org .openqa .selenium .firefox .internal .ProfilesIni ;
30
30
import org .openqa .selenium .remote .CapabilityType ;
31
31
import org .openqa .selenium .remote .DesiredCapabilities ;
32
+ import org .openqa .selenium .htmlunit .HtmlUnitDriver ;
32
33
33
34
import java .io .File ;
34
35
@@ -170,7 +171,8 @@ public DesiredCapabilities createProxyCapabilities(String type) {
170
171
capabilities = DesiredCapabilities .firefox ();
171
172
break ;
172
173
case HTMLUNIT :
173
- capabilities = DesiredCapabilities .htmlunit ();
174
+ capabilities = DesiredCapabilities .htmlUnit ();
175
+ break ;
174
176
default :
175
177
break ;
176
178
}
You can’t perform that action at this time.
0 commit comments