# Examples
# Scenario translation
- Wait for the page to load
- Click on
/page/1
link - Wait for the page to load
- Click on
/page/2
link - Wait between 20 and 30 seconds
- Reload the current page
- Wait between 20 and 60 seconds
- Use chance so there is a 50% chance that the actions will stop there, otherwise, continue with following actions
- Click on
/page/3
link
# Actions script
waitPageLoaded()
clickInternalLink(true, ["/page/1"])
waitPageLoaded()
clickInternalLink(true, ["/page/2"])
wait(20,30)
reload()
wait(20,60)
chance(50)
clickInternalLink(true, ["/page/3"])
# Script comments
waitPageLoaded() // wait for the page to load
clickInternalLink(true, ["/page/1"]) // click on /page/1 if found, otherwise another random link
waitPageLoaded() // wait for the page to load
clickInternalLink(true, ["/page/2"]) // click on /page/2 if found, otherwise another random link
wait(20,30) // wait between 20 and 30 seconds
reload() // reload current page
wait(20,60) // wait between 20 and 60 seconds
chance(50) // 50-50 chance that the execution of next actions will contine
clickInternalLink(true, ["/page/3"]) // click on /page/3 if chance has passed positively and if found, otherwise another random link