@@ -39,34 +39,53 @@ public Selenium(ClientApi api) {
39
39
}
40
40
41
41
/**
42
+ * Returns the current path to ChromeDriver
43
+ * <p>
42
44
* This component is optional and therefore the API will only work if it is installed
43
45
*/
44
46
public ApiResponse optionChromeDriverPath () throws ClientApiException {
45
47
return api .callApi ("selenium" , "view" , "optionChromeDriverPath" , null );
46
48
}
47
49
48
50
/**
51
+ * Returns the current path to Firefox binary
52
+ * <p>
49
53
* This component is optional and therefore the API will only work if it is installed
50
54
*/
51
55
public ApiResponse optionFirefoxBinaryPath () throws ClientApiException {
52
56
return api .callApi ("selenium" , "view" , "optionFirefoxBinaryPath" , null );
53
57
}
54
58
55
59
/**
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>
56
71
* This component is optional and therefore the API will only work if it is installed
57
72
*/
58
73
public ApiResponse optionIeDriverPath () throws ClientApiException {
59
74
return api .callApi ("selenium" , "view" , "optionIeDriverPath" , null );
60
75
}
61
76
62
77
/**
78
+ * Returns the current path to PhantomJS binary
79
+ * <p>
63
80
* This component is optional and therefore the API will only work if it is installed
64
81
*/
65
82
public ApiResponse optionPhantomJsBinaryPath () throws ClientApiException {
66
83
return api .callApi ("selenium" , "view" , "optionPhantomJsBinaryPath" , null );
67
84
}
68
85
69
86
/**
87
+ * Sets the current path to ChromeDriver
88
+ * <p>
70
89
* This component is optional and therefore the API will only work if it is installed
71
90
*/
72
91
public ApiResponse setOptionChromeDriverPath (String apikey , String string ) throws ClientApiException {
@@ -79,6 +98,8 @@ public ApiResponse setOptionChromeDriverPath(String apikey, String string) throw
79
98
}
80
99
81
100
/**
101
+ * Sets the current path to Firefox binary
102
+ * <p>
82
103
* This component is optional and therefore the API will only work if it is installed
83
104
*/
84
105
public ApiResponse setOptionFirefoxBinaryPath (String apikey , String string ) throws ClientApiException {
@@ -91,6 +112,22 @@ public ApiResponse setOptionFirefoxBinaryPath(String apikey, String string) thro
91
112
}
92
113
93
114
/**
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>
94
131
* This component is optional and therefore the API will only work if it is installed
95
132
*/
96
133
public ApiResponse setOptionIeDriverPath (String apikey , String string ) throws ClientApiException {
@@ -103,6 +140,8 @@ public ApiResponse setOptionIeDriverPath(String apikey, String string) throws Cl
103
140
}
104
141
105
142
/**
143
+ * Sets the current path to PhantomJS binary
144
+ * <p>
106
145
* This component is optional and therefore the API will only work if it is installed
107
146
*/
108
147
public ApiResponse setOptionPhantomJsBinaryPath (String apikey , String string ) throws ClientApiException {
0 commit comments