Je suis nouveau en Applescript. J'essaie d'ouvrir une page web et de cliquer sur un bouton sur cette page.
Voici mon script :
tell application "Safari" to activate
tell application "System Events"
tell application "System Events" to open location "https://itunes.apple.com/us/app/ibooks/id364709193?mt=8"
click button "View In iTunes" of window "iBooks for iPhone, iPod touch, and iPad on the iTunes App Store"
Voici les informations que j'ai récupérées de l'inspecteur :
Attributes:
AXRole: “AXGroup”
AXSubrole: “(null)”
AXRoleDescription: “group”
AXChildren: “”
AXHelp: “”
AXParent: “”
AXPosition: “x=-9566 y=574”
AXSize: “w=10105 h=23”
AXTitle: “”
AXDescription: “”
AXValue: “”
AXFocused: “0”
AXEnabled: “1”
AXWindow: “”
AXSelectedTextMarkerRange (W): “(null)”
AXStartTextMarker: “{length = 24, bytes = 0x070000000000000078140319010000000000000001000000}”
AXEndTextMarker: “{length = 24, bytes = 0x9a00000000000000c09de015010000000e00000001000000}”
AXVisited: “0”
AXLinkedUIElements: “(null)”
AXSelected: “0”
AXBlockQuoteLevel: “0”
AXTopLevelUIElement: “”
AXTitleUIElement: “(null)”
Actions:
AXPress - press
AXShowMenu - show menu
Comment puis-je cliquer sur le bouton "View in iTunes" ?