i’d like to setup a synthetic scripted browser that would load one by one a list of pages and perform some operations on them:
- Check if some elements are in place
- Follow some links
- Check if in these pages there are some elements
- Go to the next page to be loaded, rinse and repeat.
I haven’t found any advanced examples for the scripted browser and haven’t understood what is the correct way of logging and throwing errors from these scripts. Also the “going through a list of pages” is not a topic touched by any examples, so i’m shooting in the dark.
Along with this: i’d like to run these tests locally before i’d put them to New Relic, just so that following what happens in the scripts is way easier on my machine.
From what i see, the only way to get through all the promises in scripts is chaining a set of .then functions… is there any other way of doing things?