SEND_KEYS
Last updated
Was this helpful?
Last updated
Was this helpful?
The SEND_KEYS
action is a multi-purpose section in web automation it serves as a supporting action for various commands by providing necessary values or parameters.
SEND_KEYS
can be associated with the following commands to support their actions:
SEND_KEYS
KeyStroke on the element
Syntax ->
LOAD_URL
Provides the URL to be loaded in the browser.
Syntax ->
DEPENDANT_TEST_CASE
Specifies the name of the test case to be executed as a dependency.
Syntax ->
PERFORM_PRE_FLOWS
Indicates the specific pre-flow steps to be executed before the main test actions.
Syntax ->
HARD_WAIT
Defines the duration of the pause in the test execution, typically given in seconds or milliseconds.
Syntax ->
API_EXECUTOR
Sends necessary parameters for the API call being executed within the test.
Syntax ->
CUSTOM
Passes custom values or scripts that are required for a custom-defined action.
Syntax ->
Here CustomClass -> class name and MethodName -> LoadString
FETCH_GMAIL_SUBJECT
Provides a filter or condition to retrieve the subject line of an email from Gmail.
To get gmail body , syntax ->
Here TestSubject -> is gmail subject , 30 -> time difference in minutes and TestName -> is by the name with body is stored in globalvariables.
To get Specific String from mail body, syntax ->
Here testSubject1 -> is gmail subject , 5 -> time difference in minutes , suffix -> Suffix of the mail body, prefix -> prefix of the mail body, TestName1 -> is by the name with body is stored in globalvariables
EXPLICIT_WAIT_TEXT_PRESENT
Specifies the text for which the automation should wait until it is present on the element.
Syntax ->
In sendkeys -> TextToBeWait&&TimeOut
SAVE
Can be used to specify the name or key under which to save element text during the test for later use.
Syntax ->
SendKeys have the name with which element text is saved in global variables.