SetValue( FN, Val )

Hrabovszki1023 edited this page Sep 23, 2016 · 4 revisions

SetValue( FN, Val )

Keyword sets the text-content of a GUI-Object to the given Val.

Hint:

  1. The existing value of the will be overwritten with the execution of SetValue().
  2. SetValue does not simulate the keyboard. See: TypeKeys

Parameter

Parameter Description
FN Functionalname of the GUI-Object
Val Value to be entered.

Reserved Val Values

Val Description
"" and ${IGNORE} Don´t execute the keyword! (For data-driven testing).
See List of OKW Constants...
${DELETE} Delete the value of the GUI-object.
See List of OKW Constants...
${_ENV_} Set the value of GUI-object to value of given enviromentvar _ENV_
${_MEMKEY_} Set the value of GUI-object to the memorized value with _MEMKEY_ Key.

##Examples

Normal Usage

EN.SelectWindow( "Login" )
  EN.SetValue( "User", "Zoltan" )
  EN.SetValue( "Password", "Secret!" )
  EN.ClickOn( "OK" )

Delete the Value of a GUI-Object

EN.SelectWindow( "Login" )
  EN.SetValue( "User", "${DELETE}" )
  EN.SetValue( "Password", "${DELETE}" )
  EN.ClickOn( "OK" )

Ignoring SetValue

EN.SetValue( "name", "" )
EN.SetValue( "first name", "${IGNORE}" )
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.