import type { CompassBrowser } from '../compass-browser'; import * as Selectors from '../selectors'; export async function getConnectFormConnectionString( browser: CompassBrowser, shouldFocusInput = false ): Promise { const inputElem = await browser.$(Selectors.ConnectionStringInput); await inputElem.waitForDisplayed(); if (shouldFocusInput) { await browser.waitUntil(async () => { await inputElem.click(); return await inputElem.isFocused(); }); } return await inputElem.getValue(); }