Click on the Calameo button

I can't find a way to reference the download button, is a solution possible for this page?

Url active download option: BCN_ACAD_B3 Advanced Study Paths_Digital Marketing_Marketing Automation And Lead Nurturing_ENG
Url: https://www.calameo.com/

You can use any book id, some pdf may need account to download, but the example url does not require it and some publications do not have the option active.

Sitemap:

#main-layout > div.skin-tag.layout.skin-layout.orientation-horizontal.align-right.align-middle.hide-on-mode-mini.hide-on-view-index.hide-on-state-zoom > div.skin-layout-inner > div.skin-tag.skin-button.action-download.skin-button-no-label.hide-on-mode-mini > button

document.querySelector("#main-layout > div.skin-tag.layout.skin-layout.orientation-horizontal.align-right.align-middle.hide-on-mode-mini.hide-on-view-index.hide-on-state-zoom > div.skin-layout-inner > div.skin-tag.skin-button.action-download.skin-button-no-label.hide-on-mode-mini > button")

//*[@id="main-layout"]/div[8]/div[2]/div[11]/button

/html/body/div[2]/div/div/div[1]/div[8]/div[2]/div[11]/button

<button class="button button-no-label button-enabled" aria-label="Descargar el documento" tab-index="0" role="button"><canvas width="60" height="60" class="up"></canvas><canvas width="60" height="60" class="over"></canvas><canvas width="60" height="60" class="down"></canvas><canvas width="60" height="60" class="disabled"></canvas></button>

I like to click button from about 500 links.

Thanks

@wsdc Hi. You probably have difficulties selecting it because it is under an iframe.

You can use it's source - https://v.calameo.com/?buildid=8286-000125&html5=true&language=en&mode=normal&trackersource=calameo&bkcode=0018217971cffff329153 and with an 'Element click' selector .action-download button you should be able to download this file.

Sitemap example:

{"_id":"en-calameo-com","startUrl":["https://v.calameo.com/?buildid=8286-000125&html5=true&language=en&mode=normal&trackersource=calameo&bkcode=0018217971cffff329153"],"selectors":[{"clickElementSelector":".action-download button","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":"1250","discardInitialElements":"do-not-discard","id":"download-click","multiple":true,"parentSelectors":["_root"],"selector":"html","type":"SelectorElementClick"}]}

Thanks @ViestursWS work ok, I rebuild the urls and change the bkcode. :smiley: