* Structural interface for a WebDriver client. * * @record
| 246 | * @record |
| 247 | */ |
| 248 | class IWebDriver { |
| 249 | /** |
| 250 | * Executes the provided {@link command.Command} using this driver's |
| 251 | * {@link command.Executor}. |
| 252 | * |
| 253 | * @param {!command.Command} command The command to schedule. |
| 254 | * @return {!Promise<T>} A promise that will be resolved with the command |
| 255 | * result. |
| 256 | * @template T |
| 257 | */ |
| 258 | execute(command) {} // eslint-disable-line |
| 259 | |
| 260 | /** |
| 261 | * Sets the {@linkplain input.FileDetector file detector} that should be |
| 262 | * used with this instance. |
| 263 | * @param {input.FileDetector} detector The detector to use or `null`. |
| 264 | */ |
| 265 | setFileDetector(detector) {} // eslint-disable-line |
| 266 | |
| 267 | /** |
| 268 | * @return {!command.Executor} The command executor used by this instance. |
| 269 | */ |
| 270 | getExecutor() {} |
| 271 | |
| 272 | /** |
| 273 | * @return {!Promise<!Session>} A promise for this client's session. |
| 274 | */ |
| 275 | getSession() {} |
| 276 | |
| 277 | /** |
| 278 | * @return {!Promise<!Capabilities>} A promise that will resolve with |
| 279 | * the instance's capabilities. |
| 280 | */ |
| 281 | getCapabilities() {} |
| 282 | |
| 283 | /** |
| 284 | * Terminates the browser session. After calling quit, this instance will be |
| 285 | * invalidated and may no longer be used to issue commands against the |
| 286 | * browser. |
| 287 | * |
| 288 | * @return {!Promise<void>} A promise that will be resolved when the |
| 289 | * command has completed. |
| 290 | */ |
| 291 | quit() {} |
| 292 | |
| 293 | /** |
| 294 | * Creates a new action sequence using this driver. The sequence will not be |
| 295 | * submitted for execution until |
| 296 | * {@link ./input.Actions#perform Actions.perform()} is called. |
| 297 | * |
| 298 | * @param {{async: (boolean|undefined), |
| 299 | * bridge: (boolean|undefined)}=} options Configuration options for |
| 300 | * the action sequence (see {@link ./input.Actions Actions} documentation |
| 301 | * for details). |
| 302 | * @return {!input.Actions} A new action sequence for this instance. |
| 303 | */ |
| 304 | actions(options) {} // eslint-disable-line |
| 305 |
nothing calls this directly
no outgoing calls
no test coverage detected