Goal: Automate data backup from a third party site.
Scenario:
The data is available on a web page as a series of elements. ex:
[Data A] [Data B] [Data ...]
- Click on a
Dataelement.
- After a short delay, elements will be populated under the data element and a [Save] button will appear. ex:
+ [Data A] [ ] item 1 [ ] item 2 ... [ ] item N [Save]
- Select all
items
- Click [Save] to download.
Repeat steps 1-4 to save each Data element for a complete backup.
In synchronous psuedo code this would be:
alerts [array] for i in alerts click alerts[i].load check if data ready; ready when save button appears click select_all click save How can this be done in Javascript?