Skip to content

Commit 51dabd2

Browse files
authored
Merge pull request #19 from thc202/selenium-v8
Regenerate Selenium API (v8)
2 parents a54a85e + 3681c5c commit 51dabd2

File tree

1 file changed

+39
-0
lines changed
  • subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen

1 file changed

+39
-0
lines changed

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Selenium.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,53 @@ public Selenium(ClientApi api) {
3939
}
4040

4141
/**
42+
* Returns the current path to ChromeDriver
43+
* <p>
4244
* This component is optional and therefore the API will only work if it is installed
4345
*/
4446
public ApiResponse optionChromeDriverPath() throws ClientApiException {
4547
return api.callApi("selenium", "view", "optionChromeDriverPath", null);
4648
}
4749

4850
/**
51+
* Returns the current path to Firefox binary
52+
* <p>
4953
* This component is optional and therefore the API will only work if it is installed
5054
*/
5155
public ApiResponse optionFirefoxBinaryPath() throws ClientApiException {
5256
return api.callApi("selenium", "view", "optionFirefoxBinaryPath", null);
5357
}
5458

5559
/**
60+
* Returns the current path to Firefox driver (geckodriver)
61+
* <p>
62+
* This component is optional and therefore the API will only work if it is installed
63+
*/
64+
public ApiResponse optionFirefoxDriverPath() throws ClientApiException {
65+
return api.callApi("selenium", "view", "optionFirefoxDriverPath", null);
66+
}
67+
68+
/**
69+
* Returns the current path to IEDriverServer
70+
* <p>
5671
* This component is optional and therefore the API will only work if it is installed
5772
*/
5873
public ApiResponse optionIeDriverPath() throws ClientApiException {
5974
return api.callApi("selenium", "view", "optionIeDriverPath", null);
6075
}
6176

6277
/**
78+
* Returns the current path to PhantomJS binary
79+
* <p>
6380
* This component is optional and therefore the API will only work if it is installed
6481
*/
6582
public ApiResponse optionPhantomJsBinaryPath() throws ClientApiException {
6683
return api.callApi("selenium", "view", "optionPhantomJsBinaryPath", null);
6784
}
6885

6986
/**
87+
* Sets the current path to ChromeDriver
88+
* <p>
7089
* This component is optional and therefore the API will only work if it is installed
7190
*/
7291
public ApiResponse setOptionChromeDriverPath(String apikey, String string) throws ClientApiException {
@@ -79,6 +98,8 @@ public ApiResponse setOptionChromeDriverPath(String apikey, String string) throw
7998
}
8099

81100
/**
101+
* Sets the current path to Firefox binary
102+
* <p>
82103
* This component is optional and therefore the API will only work if it is installed
83104
*/
84105
public ApiResponse setOptionFirefoxBinaryPath(String apikey, String string) throws ClientApiException {
@@ -91,6 +112,22 @@ public ApiResponse setOptionFirefoxBinaryPath(String apikey, String string) thro
91112
}
92113

93114
/**
115+
* Sets the current path to Firefox driver (geckodriver)
116+
* <p>
117+
* This component is optional and therefore the API will only work if it is installed
118+
*/
119+
public ApiResponse setOptionFirefoxDriverPath(String apikey, String string) throws ClientApiException {
120+
Map<String, String> map = new HashMap<>();
121+
if (apikey != null) {
122+
map.put("apikey", apikey);
123+
}
124+
map.put("String", string);
125+
return api.callApi("selenium", "action", "setOptionFirefoxDriverPath", map);
126+
}
127+
128+
/**
129+
* Sets the current path to IEDriverServer
130+
* <p>
94131
* This component is optional and therefore the API will only work if it is installed
95132
*/
96133
public ApiResponse setOptionIeDriverPath(String apikey, String string) throws ClientApiException {
@@ -103,6 +140,8 @@ public ApiResponse setOptionIeDriverPath(String apikey, String string) throws Cl
103140
}
104141

105142
/**
143+
* Sets the current path to PhantomJS binary
144+
* <p>
106145
* This component is optional and therefore the API will only work if it is installed
107146
*/
108147
public ApiResponse setOptionPhantomJsBinaryPath(String apikey, String string) throws ClientApiException {

0 commit comments

Comments
 (0)