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

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.


#main-layout > > > > button

document.querySelector("#main-layout > > > > 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.


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

You can use it's source - and with an 'Element click' selector .action-download button you should be able to download this file.

Sitemap example:

{"_id":"en-calameo-com","startUrl":[""],"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 @viesturs work ok, I rebuild the urls and change the bkcode. :smiley: