/** * Wait Class */ declare class Wait { static count: number; /** * Waits for an element to be removed or become invisible on the page * * ```js * Wait.waitUntilInvisibilityOfElement("//input[@id='login']",20); * ``` * * @param {any} locatorParam locator located by xpath|CSS * @param {String} timeoutSecs in secs * */ static waitUntilInvisibilityOfElement(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for an element to become visible on the page * * ```js * Wait.waitUntilVisibilityOfElement("//input[@id='login']",20); * ``` * * @param {any} locatorParam located by xpath|CSS * @param {String} timeoutSecs in secs * */ static waitUntilVisibilityOfElement(locatorParam: any, timeoutSecs?: number): Promise; /** * Pauses for an execution for a number of secs * * ```js * Wait.waitForDefaultTimeout(20); * ``` * * @param {String} timeoutSecs in secs * */ static waitForDefaultTimeout(timeoutSecs: number): Promise; /** * Waits for an element to be clickable * * ```js * Wait.waitForElementClickable("//input[@id='login']",20); * ``` * * @param {any} locatorParam located by xpath|CSS * @param {String} timeoutSecs in secs * */ static waitForElementClickable(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for a text to appear * * ```js * Wait.waitForVisibilityOfText("Apple",20); * ``` * * @param {String} text * @param {String} timeoutSecs in secs * */ static waitForVisibilityOfText(text: string, timeoutSecs?: number): Promise; /** * Waits for a specified value of attribute * * ```js * Wait.waitForVisibilityOfValue("//input[@id='name']","John",20); * ``` * @param {any} locatorParam * @param {String} value "value" * @param {String} timeoutSecs in secs * */ static waitForVisibilityOfValue(locatorParam: any, value: string, timeoutSecs?: number): Promise; /** * Waits for an element to become enabled * * ```js * Wait.waitForElementToBeEnabled("//input[@id='login']",20); * ``` * * @param {any} locatorParam specified by CSS | Xpath * @param {String} timeoutSecs in secs * */ static waitForElementToBeEnabled(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for an URL to match the expected * * ```js * Wait.waitForURLPresent("eInvoice#\auth\login",20); * ``` * * @param {String} URLPart * @param {String} timeoutSecs in secs * */ static waitForURLPresent(URLPart: string, timeoutSecs?: number): Promise; /** * Waits for an element * * ```js * await Wait.waitForElement("//input[@id='login']"",20); * ``` * * @param {any} locatorParam specified by CSS | Xpath * @param {String} timeoutSecs in secs * */ static waitForElement(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for an element to not attached to DOM * * ```js * Wait.waitForElementToDetach("//input[@id='login']"",20); * ``` * * @param {any} locatorParam specified by CSS | Xpath * @param {String} timeoutSecs in secs * */ static waitForElementToDetach(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for a specified number of elements * * ```js * Wait.waitForNumberOfElementsToBeVisible("//input",10,20); * ``` * * @param {any} locatorParam specified by CSS | Xpath * @param {number} numberOfElements of elements * @param {String} timeoutSecs in secs * */ static waitForNumberOfElementsToBeVisible(locatorParam: any, numberOfElements: number, timeoutSecs?: number): Promise; /** * Waits for an element to hide * * ```js * Wait.waitForElementToHide(locator,20); * ``` * * @param {any} locatorParam specified as CSS | Xpath * @param {String} timeoutSecs in secs * */ static waitForElementToHide(locatorParam: any, timeoutSecs?: number): Promise; /** * Waits for the specified amount of time * for the element to load in the DOM of a page * and then returns a boolean value. * @param {string} xpath * @param {number} timeouts -default timeout is value mentioned against key "DEFAULT_HIGH_WAIT" * in config.json * @return {boolean} boolean * Wait.waitforElementPresentInDom("//button[@class='au--wc--btn btn acti']",120); */ static waitforElementPresentInDom(xpath: string, timeouts?: number): Promise; } declare const _default: Wait; export default _default; declare const _Wait: typeof Wait; export { _Wait as Wait };