|
25 | 25 | import static org.openqa.selenium.remote.DriverCommand.ADD_VIRTUAL_AUTHENTICATOR;
|
26 | 26 | import static org.openqa.selenium.remote.DriverCommand.CANCEL_DIALOG;
|
27 | 27 | import static org.openqa.selenium.remote.DriverCommand.CLEAR_ELEMENT;
|
| 28 | +import static org.openqa.selenium.remote.DriverCommand.CLICK_DIALOG; |
28 | 29 | import static org.openqa.selenium.remote.DriverCommand.CLICK_ELEMENT;
|
29 | 30 | import static org.openqa.selenium.remote.DriverCommand.CLOSE;
|
30 | 31 | import static org.openqa.selenium.remote.DriverCommand.DELETE_ALL_COOKIES;
|
@@ -196,14 +197,14 @@ public AbstractHttpCommandCodec() {
|
196 | 197 | defineCommand(SET_USER_VERIFIED, post(webauthnId + "/uv"));
|
197 | 198 |
|
198 | 199 | // Federated Credential Management API
|
199 |
| - String fedcm = sessionId + "/fedcm"; |
200 |
| - defineCommand(CANCEL_DIALOG, post(fedcm + "/canceldialog")); |
201 |
| - defineCommand(SELECT_ACCOUNT, post(fedcm + "/selectaccount")); |
202 |
| - defineCommand(GET_ACCOUNTS, get(fedcm + "/accountlist")); |
203 |
| - defineCommand(GET_FEDCM_TITLE, get(fedcm + "/gettitle")); |
204 |
| - defineCommand(GET_FEDCM_DIALOG_TYPE, get(fedcm + "/getdialogtype")); |
205 |
| - defineCommand(SET_DELAY_ENABLED, post(fedcm + "/setdelayenabled")); |
206 |
| - defineCommand(RESET_COOLDOWN, post(fedcm + "/resetCooldown")); |
| 200 | + defineCommand(CANCEL_DIALOG, post("/fedcm/canceldialog")); |
| 201 | + defineCommand(SELECT_ACCOUNT, post("/fedcm/selectaccount")); |
| 202 | + defineCommand(CLICK_DIALOG, post("/fedcm/clickdialogbutton")); |
| 203 | + defineCommand(GET_ACCOUNTS, get("/fedcm/accountlist")); |
| 204 | + defineCommand(GET_FEDCM_TITLE, get("/fedcm/gettitle")); |
| 205 | + defineCommand(GET_FEDCM_DIALOG_TYPE, get("/fedcm/getdialogtype")); |
| 206 | + defineCommand(SET_DELAY_ENABLED, post("/fedcm/setdelayenabled")); |
| 207 | + defineCommand(RESET_COOLDOWN, post("/fedcm/resetcooldown")); |
207 | 208 |
|
208 | 209 | defineCommand(GET_DOWNLOADABLE_FILES, get(sessionId + "/se/files"));
|
209 | 210 | defineCommand(DOWNLOAD_FILE, post(sessionId + "/se/files"));
|
|
0 commit comments