I am trying to automate the downloading of game records which are stored on successive pages on a website.
I've written the following AppleScript (see below). It presently correctly opens a sample page (I will try later to add a loop do have this script iterate through multiple pages) but does not succeed in 'clicking' on the 'Select All' link.
)" ) but the element Select All doesn't get 'clicked'.
Since you don't have the user credentials to login to the page in question, I'm attaching a screengrab showing the info for inspect element: Select All.
Script to Debug:
-- Set Counter
set Counter to 1
-- Set pageURL
set pageURL to "http://www.chess.com/home/my_archive?sortby=&show=live_bullet&color=all&result=all&page=
" & Counter
display dialog Counter giving up after 1
-- Open webpage and click on 'Select All' link
tell application "Google Chrome"
open location pageURL