I'm trying to click on button "Free" to download application in iTunes. I'm using Javascript for Automation to open iTunes application page:
itunes = Application('iTunes');
itunes.activate();
console.log( itunes.name() );
console.log( itunes.version() );
delay(1)
appUrl = "itms://itunes.apple.com/us/app/ibooks/id364709193?mt=8";
win = itunes.openLocation(appUrl);
The script opens iBook page. How to find and click button "Free"? How to list all elements on open page?
Thank you for any help.