* Configures the given executor with Chromium-specific commands. * @param {!http.Executor} executor the executor to configure.
(executor, vendorPrefix)
| 121 | * @param {!http.Executor} executor the executor to configure. |
| 122 | */ |
| 123 | function configureExecutor(executor, vendorPrefix) { |
| 124 | executor.defineCommand(Command.LAUNCH_APP, 'POST', '/session/:sessionId/chromium/launch_app') |
| 125 | executor.defineCommand(Command.GET_NETWORK_CONDITIONS, 'GET', '/session/:sessionId/chromium/network_conditions') |
| 126 | executor.defineCommand(Command.SET_NETWORK_CONDITIONS, 'POST', '/session/:sessionId/chromium/network_conditions') |
| 127 | executor.defineCommand(Command.DELETE_NETWORK_CONDITIONS, 'DELETE', '/session/:sessionId/chromium/network_conditions') |
| 128 | executor.defineCommand(Command.SEND_DEVTOOLS_COMMAND, 'POST', '/session/:sessionId/chromium/send_command') |
| 129 | executor.defineCommand( |
| 130 | Command.SEND_AND_GET_DEVTOOLS_COMMAND, |
| 131 | 'POST', |
| 132 | '/session/:sessionId/chromium/send_command_and_get_result', |
| 133 | ) |
| 134 | executor.defineCommand(Command.SET_PERMISSION, 'POST', '/session/:sessionId/permissions') |
| 135 | executor.defineCommand(Command.GET_CAST_SINKS, 'GET', `/session/:sessionId/${vendorPrefix}/cast/get_sinks`) |
| 136 | executor.defineCommand( |
| 137 | Command.SET_CAST_SINK_TO_USE, |
| 138 | 'POST', |
| 139 | `/session/:sessionId/${vendorPrefix}/cast/set_sink_to_use`, |
| 140 | ) |
| 141 | executor.defineCommand( |
| 142 | Command.START_CAST_DESKTOP_MIRRORING, |
| 143 | 'POST', |
| 144 | `/session/:sessionId/${vendorPrefix}/cast/start_desktop_mirroring`, |
| 145 | ) |
| 146 | executor.defineCommand( |
| 147 | Command.START_CAST_TAB_MIRRORING, |
| 148 | 'POST', |
| 149 | `/session/:sessionId/${vendorPrefix}/cast/start_tab_mirroring`, |
| 150 | ) |
| 151 | executor.defineCommand( |
| 152 | Command.GET_CAST_ISSUE_MESSAGE, |
| 153 | 'GET', |
| 154 | `/session/:sessionId/${vendorPrefix}/cast/get_issue_message`, |
| 155 | ) |
| 156 | executor.defineCommand(Command.STOP_CASTING, 'POST', `/session/:sessionId/${vendorPrefix}/cast/stop_casting`) |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Creates {@link selenium-webdriver/remote.DriverService} instances that manage |
no test coverage detected