Methods
clickHiddenElement
- clickHiddenElement(selector): Promise<void>
-
Returns Promise<void>
clickIfElementExists
- clickIfElementExists(selector): Promise<void>
-
Returns Promise<void>
confirmElementIsReadyForInteraction
- confirmElementIsReadyForInteraction(locator): Promise<void>
-
Returns Promise<void>
elementExists
- elementExists(page, selector): Promise<boolean>
-
Parameters
-
page: Page
-
selector: string
Returns Promise<boolean>
forEachMatch
- forEachMatch<T>(locator, action): Promise<T[]>
-
Parameters
-
locator: Locator
-
action: ((currentLocator) => Promise<T>)
-
- (currentLocator): Promise<T>
-
Returns Promise<T>
Returns Promise<T[]>
getElementAttributeValue
- getElementAttributeValue(selector, attributeName): Promise<string>
-
Parameters
-
selector: string
-
attributeName: string
Returns Promise<string>
getElementCount
- getElementCount(selector): Promise<number>
-
Returns Promise<number>
scrollTo
- scrollTo(element): Promise<void>
-
Returns Promise<void>
typeWithDelay
- typeWithDelay(selector, text, delay?): Promise<void>
-
Parameters
-
selector: string
-
text: string
-
delay: number = 100
Returns Promise<void>
waitForElementInvisibility
- waitForElementInvisibility(locator): Promise<void>
-
Returns Promise<void>
waitForLocator
- waitForLocator(locator): Promise<Locator>
-
Returns Promise<Locator>
Get the count of all the elements, iterate through the elements and return array of the results