SendKeyToWebElement

Top  Previous  Next

×V4.1Ø

S

A

W

WS

ü

Syntax -

SendKeyToWebElement <Value> <Element Identifier>

       Where:

               <Value> is a literal string or a variable that contains a string value.

               <Element Identifier> is a valid web element identifier as described in Identifying an Element.

 

Description:

This command is used to send a single character as specified by <Value> to the element defined by <Element ID>.

One use for this command is to activate or click a difficult to activate element or button.  In such a scenario, the user might attempt to send a carriage return to the element using the &CR built in variable.

 

Soarian SmartUI: Yes

Chrome: Yes

 

Sample 1:

       The following statement will send an "a" to the element defined.

SendKeyToWebElement "a" "Dialog=Main:wellFrame:Textfield,ID=ctlIdentifierInputBoxText__,INDEX=1"

Sample 2:

       The following statement will send a carriage return to a button that is difficult to click.

SendKeyToWebElement &CR "Dialog=Main:wellFrame:Button,ID=ctlExclamationButton__,INDEX=1"

 

See Also:

Identifying an Element

WaitForWebPageCompletion

WebElementTimeout

PasteWebValue

TypeWebValue

EnableSoarianSmartUI