sendkeysbytext

Fill an input field

Variable
Value
Description

Property

text

text display on the screen

Parameter

value

value to enter in the field

The associated label, aria-label, placeholder, adjacent text, orcurrent value can be used to identify the field.

For example, in https://webactions.w3spaces.com/input.html , the first name field has a label "First Name:"

if we use the action sendkeysbytext with Property="First Name:" and Parameter="John", it will fill the first name field with value John :

We can use context to manage duplicated text. For example, if we use the action sendkeysbytext with Property="First Name:|context=The input element" it will search for the first name field in the context of "The input element" .

Last updated