Last active
March 13, 2019 07:47
-
-
Save cboulanger/2ce4d5f7107661f1c53b146c498560aa to your computer and use it in GitHub Desktop.
Eventrecorder script demonstrating the use of macros and variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert-match-uri widgetbrowser_recorder | |
config-set-mode presentation | |
info "This demostrates the use of macros.." | |
wait 2000 | |
FORM=Composite/Scroll/TabView/TabPage/Form/FormItems/GroupBox/Composite/Single | |
define fill-form | |
set-value $FORM/TextField $1 | |
set-value $FORM/PasswordField $2 | |
set-value $FORM/TextArea $3 | |
end | |
# fill out form | |
fill-form "User 1" "Password 1" "Text for User 1" | |
wait 2000 | |
fill-form "User 2" "Password 2" "This is a different text for User 2" | |
wait 2000 | |
fill-form "User 3" "Password 3" "Yet another text for User 3" | |
execute eventrecorder/edit | |
info "Now press 'Record' to record a new script or 'Clear' to write your own" | |
wait 2000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment