@@ -299,6 +299,9 @@ The functions created with the locator methods described above all return `TestE
299
299
| ` getDimensions(): Promise<ElementDimensions> ` | Gets the dimensions of the element. |
300
300
| ` getProperty(name: string): Promise<any> ` | Gets the value of the given JS property for the element. |
301
301
| ` matchesSelector(selector: string): Promise<boolean> ` | Checks whether the element matches the given CSS selector. |
302
+ | ` setInputValue(value: string): Promise<void>; ` | Sets the value of a property of an input. |
303
+ | ` selectOptions(...optionIndexes: number[]): Promise<void>; ` | Selects the options at the specified indexes inside of a native ` select ` element. |
304
+ | ` dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>; ` | Dispatches an event with a particular name. |
302
305
303
306
` TestElement ` is an abstraction designed to work across different test environments (Karma,
304
307
Protractor, etc). When using harnesses, you should perform all DOM interaction via this interface.
@@ -599,6 +602,9 @@ result of the operation.
599
602
| ` getDimensions(): Promise<ElementDimensions> ` | Gets the dimensions of the element. |
600
603
| ` getProperty(name: string): Promise<any> ` | Gets the value of the given property for the element. |
601
604
| ` matchesSelector(selector: string): Promise<boolean> ` | Checks whether the given selector matches the element. |
605
+ | ` setInputValue(value: string): Promise<void>; ` | Sets the value of a property of an input. |
606
+ | ` selectOptions(...optionIndexes: number[]): Promise<void>; ` | Selects the options at the specified indexes inside of a native ` select ` element. |
607
+ | ` dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>; ` | Dispatches an event with a particular name. |
602
608
603
609
The ` TestElement ` interface consists largely of methods that resemble methods
604
610
available on ` HTMLElement ` ; similar methods exist in most test environments, which makes
0 commit comments