@@ -36,6 +36,20 @@ public Selenium(ClientApi api) {
36
36
this .api = api ;
37
37
}
38
38
39
+ /** This component is optional and therefore the API will only work if it is installed */
40
+ public ApiResponse optionBrowserExtensions () throws ClientApiException {
41
+ return api .callApi ("selenium" , "view" , "optionBrowserExtensions" , null );
42
+ }
43
+
44
+ /**
45
+ * Returns the current path to Chrome binary
46
+ *
47
+ * <p>This component is optional and therefore the API will only work if it is installed
48
+ */
49
+ public ApiResponse optionChromeBinaryPath () throws ClientApiException {
50
+ return api .callApi ("selenium" , "view" , "optionChromeBinaryPath" , null );
51
+ }
52
+
39
53
/**
40
54
* Returns the current path to ChromeDriver
41
55
*
@@ -69,6 +83,11 @@ public ApiResponse optionIeDriverPath() throws ClientApiException {
69
83
return api .callApi ("selenium" , "view" , "optionIeDriverPath" , null );
70
84
}
71
85
86
+ /** This component is optional and therefore the API will only work if it is installed */
87
+ public ApiResponse optionLastDirectory () throws ClientApiException {
88
+ return api .callApi ("selenium" , "view" , "optionLastDirectory" , null );
89
+ }
90
+
72
91
/**
73
92
* Returns the current path to PhantomJS binary
74
93
*
@@ -78,6 +97,17 @@ public ApiResponse optionPhantomJsBinaryPath() throws ClientApiException {
78
97
return api .callApi ("selenium" , "view" , "optionPhantomJsBinaryPath" , null );
79
98
}
80
99
100
+ /**
101
+ * Sets the current path to Chrome binary
102
+ *
103
+ * <p>This component is optional and therefore the API will only work if it is installed
104
+ */
105
+ public ApiResponse setOptionChromeBinaryPath (String string ) throws ClientApiException {
106
+ Map <String , String > map = new HashMap <>();
107
+ map .put ("String" , string );
108
+ return api .callApi ("selenium" , "action" , "setOptionChromeBinaryPath" , map );
109
+ }
110
+
81
111
/**
82
112
* Sets the current path to ChromeDriver
83
113
*
@@ -119,6 +149,13 @@ public ApiResponse setOptionIeDriverPath(String string) throws ClientApiExceptio
119
149
return api .callApi ("selenium" , "action" , "setOptionIeDriverPath" , map );
120
150
}
121
151
152
+ /** This component is optional and therefore the API will only work if it is installed */
153
+ public ApiResponse setOptionLastDirectory (String string ) throws ClientApiException {
154
+ Map <String , String > map = new HashMap <>();
155
+ map .put ("String" , string );
156
+ return api .callApi ("selenium" , "action" , "setOptionLastDirectory" , map );
157
+ }
158
+
122
159
/**
123
160
* Sets the current path to PhantomJS binary
124
161
*
0 commit comments