File

src/services/sendKeys/send-keys.service.ts

Description

This service is to give support the SendKeys Class, (provides methods for sending keystrokes to an application)

Index

Methods

Methods

Static dispatchKeyboardEvent
dispatchKeyboardEvent(activeElement, key)

This method is used to dispatch an event in the activeElement according to the key that receive

Parameters :
Name Optional Description
activeElement No

: ControlComponent

key No

string: The key to send

Returns : void
Static send
send(key: string)

This method is used to receive a key and do the action according to the key

Parameters :
Name Type Optional Description
key string No

string: The key to send

Returns : void
Static sendWait
sendWait(key: string)

This method is used to receive a key and do the action according to the key

Parameters :
Name Type Optional Description
key string No

string: The key to send

Returns : void

results matching ""

    No results matching ""