sdk.automation.pressenterkey
Home > @matterway/sdk > Automation > pressEnterKey
Automation.pressEnterKey() function
Simulates pressing the Enter key on the keyboard.
Signature:
export declare function pressEnterKey(ctx: Context, selector?: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object. |
selector | string | (Optional) optional selector to click enter on element. |
Returns:
Promise<void>
Example
await pressEnterKey(ctx);