MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / IWebDriver

Class IWebDriver

javascript/selenium-webdriver/lib/webdriver.js:246–636  ·  view source on GitHub ↗

* Structural interface for a WebDriver client. * * @record

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected