selenidejs › CollectedByLocator
- CollectedByLocator
- Locator‹Promise‹WebElement[]››
+ new CollectedByLocator(searchFunction
: function, collection
: Collection): CollectedByLocator
Defined in lib/locators/collectedByLocator.ts:22
Parameters:
▪ searchFunction: function
▸ (element
: Element): Element | Collection
Parameters:
Name | Type |
---|---|
element |
Element |
▪ collection: Collection
Returns: CollectedByLocator
• collection: Collection
Defined in lib/locators/collectedByLocator.ts:26
• searchFunction: function
Defined in lib/locators/collectedByLocator.ts:25
▸ (element
: Element): Element | Collection
Parameters:
Name | Type |
---|---|
element |
Element |
▸ find(): Promise‹WebElement[]›
Implementation of Locator
Defined in lib/locators/collectedByLocator.ts:32
Returns: Promise‹WebElement[]›
▸ toString(): string
Defined in lib/locators/collectedByLocator.ts:54
Returns: string