import { By, Driver, Element, ElementRectangle } from 'utam'; export declare class ElementWdioAdapter implements Element { static classIdentity: string; instanceIdentity: string; element: WebdriverIO.Element; driver: Driver; constructor(element: WebdriverIO.Element, driver: Driver); /** * transforms wdio element into adapter. should override for other adapters * @param element wdio element * @returns new element object */ protected __supplier__(element: WebdriverIO.Element): Element; findElement(locator: By): Promise; findElements(locator: By): Promise; getText(): Promise; getCssValue(cssStyleProperty: string): Promise; getAttribute(attributeName: string): Promise; getRect(): Promise; isDisplayed(): Promise; isEnabled(): Promise; isExisting(): Promise; hasFocus(): Promise; click(): Promise; doubleClick(): Promise; rightClick(): Promise; clickAndHold(durationSec?: number): Promise; clearValue(): Promise; addValue(arg: string): Promise; setValue(arg: string): Promise; getValue(): Promise; scrollIntoView(arg?: boolean | { block: ScrollLogicalPosition; }): Promise; moveTo(options?: { xOffset: number; yOffset: number; }): Promise; static isWdioElement(element: unknown): element is ElementWdioAdapter; /** * Check if the element invoking the function contains the element designed by the locator * Note: This function actually consumes a lower-level API, findElementFromElement that is exposed through the * webdriver package. It's not part of the set of API provided by the WDIO framework but comes from a lower * layer implementation of the WebDriver protocol. This won't work with mobile locators as this API only * supports the locator strategies defined in the WebDriver spec. * * @see https://www.w3.org/TR/webdriver/#locator-strategies * @todo add if statement that check that using === 'css selector' and uses the findElementFromElement * @todo add else clause and consume a wdio API compatible with mobile locator strategies this.element. * * @param locator element locator strategy and selector * @returns true if the element matching the locator can be find from the element calling the function */ containsElement(locator: By): Promise; /** * Check if the element invoking the function contains the elements designed by the locator * Note: This function actually consumes a lower-level API, findElementFromElement that is exposed through the * webdriver package. It's not part of the set of API provided by the WDIO framework but comes from a lower * layer implementation of the WebDriver protocol. This won't work with mobile locators as this API only * supports the locator strategies defined in the WebDriver spec. * * @see https://www.w3.org/TR/webdriver/#locator-strategies * @todo add if statement that check that using === 'css selector' and uses the findElementFromElement * @todo add else clause and consume a wdio API compatible with mobile locator strategies this.element. * * @param locator element locator strategy and selector * @returns the number of elements found */ containsElements(locator: By): Promise; dragAndDrop(target: { element?: Element; offset?: { x: number; y: number; }; }, durationSec?: number): Promise; flick(offset: { x: number; y: number; }): Promise; blur(): Promise; focus(): Promise; getScreenshot(): Promise; }