attaching an application image-
Before the code i will explain what am i doing:
1.- I insert a new record some fields, the last field i fill is the
comment field
2.- After that i submit the form and the application add a new record to
a list, this record is always the firstone on top of the list, so is
always de source index, this new record has all the information i
captured (included the comment) and also comes with an extra field wich
is a secuencial number (lets call it order number)
3.- I validate that the comment was successfully inserted
4.- Having that i also want to save the order number to keep record of
what order numbers i created
5.- After saving the number sing out from app.
The code goes as follows (everything is working except that the order
number is getting saved without any space or new line on each
interation)
InputValue 0 53 "TEXT" "iptComment" "comment" $Comentario "" ""
- Code: Select all
#The line above insert the $Comentario variable of my data table this is working fine
SubmitClick 0 124 "" "" "Procesar" ""
#We click the submit button
# HERE GOES A SYNC POINT INSTEAD OF WAIT, actually not having problems
# with sync, already know that, the pages does not take more than 500
# milisecs to load, just writing a note for future references :)
Wait 1000
ValidateSelectedText 0 139 0 $Comentario ""
# the submit button shows me a list of the comments i have submited, so
# the first record must be the variable $Comentario i just submitted, no
# problems here also
SaveSelectedText 0 "LotesGenerados.txt" 126 0 10 "" APPEND
# this line save the order number that generates with the last
# $Comentario submited
Wait 500
#FollowLink 0 48 "Salir" "http://192.168.200.6/logout.aspx
<https://mail.xxxxxxzons.com.mx/exchweb/bin/redir.asp?
URL.168.200.6/logout.aspx" ""
# End of the script.