* @param {!./webdriver.WebDriver} driver * @return {!Promise } whether the session was created with BiDi enabled.
(driver)
| 48 | * @return {!Promise<boolean>} whether the session was created with BiDi enabled. |
| 49 | */ |
| 50 | async 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. |
nothing calls this directly
no test coverage detected