MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / isBidiEnabled

Function isBidiEnabled

javascript/selenium-webdriver/lib/web_extension.js:50–53  ·  view source on GitHub ↗

* @param {!./webdriver.WebDriver} driver * @return {!Promise } whether the session was created with BiDi enabled.

(driver)

Source from the content-addressed store, hash-verified

48 * @return {!Promise<boolean>} whether the session was created with BiDi enabled.
49 */
50async function isBidiEnabled(driver) {
51 const caps = await driver.getCapabilities()
52 return Boolean(caps.get('webSocketUrl'))
53}
54
55/**
56 * @param {string} method the driver method that needs BiDi.

Callers

nothing calls this directly

Calls 2

getCapabilitiesMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected