Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
We don't have a way to export this macro.

Status
colourGreen
titleUp TO DATE

...

Code Block
# clean downloads folder before each iteration of test
filesEmptyDownloadsFolder

# download a file in the download directory of the device
filesDownloadFile,https://dl.greenspector.com/pdf/sustainability.pdf"

########## prepare browser ############################
browserPrepareAndOpenForReference
measureStart,PAUSE_REFERENCE
pause,1000
measureStop
########################################################

###### go to wetransfer site ###########################
browserGoToUrl,https://wetransfer.com
measureStart,CHRGT_HOME
pressEnter
waitUntilText,Send a file
pause,${PAUSEAFTERLOAD}
measureStop
########################################################

########## stuf to go to the upload button ##################
measureStart,CHRGT_PAGE_AGREEMENT
clickByText,Send a file
waitUntilText,please agree
measureStop

measureStart,CHRGT_PAGE_UPLOAD
clickByText,I agree
waitUntilTextBeforeClick,Okay
waitUntilText,Upload files
measureStop
########################################################

###### upload the previous donwloaded file #############
measureStart,ACTION_SELECT_ONE_FILE
clickByText,Upload files
if,exists,text,Allow
clickByText,Allow
fi
pause,1000
waitUntilTextBeforeClick,While using the app,true
#open the file system on the device
waitUntilTextBeforeClick,Files
# wait files system to be opened
waitUntilDesc,Show roots
# select the dowloads folder on file system
filesSelectDownloadsFolder
# select the previous downloaded file
clickByText,sustainability.pdf
waitUntilText,Add more files
measureStop
########################################################
Note

This code is only on an example. It may not work because of changes on site wetransfer.com

...