DjProg 3 Posted March 9, 2016 Report Share Posted March 9, 2016 Hello guys, I'm having a hard time trying to save a CSV that's dynamically generated by the site I'm using (can't post it, you need a payed account to see the behavior). Basically the site has a link: <span ng-click="exportCsv()" class="pagination-results-export-csv" ng-show="rows.length > 0">Export Results as CSV</span> which triggers an "exportCsv()" function, which triggers the creation of the CSV file which is then "pushed" to the browser (once it's generated, which takes 3-30 seconds) via a Download file dialog window (a bit like automatic downloads if you see what I mean). Unfortunately using the click dialog button doesn't work: click(<innertext="Export Results as CSV">,"Left Click","No") wait(20) plugin command("WindowsCommands.dll", "click dialog button", "Enregistrer sous", "Enregistrer") I also can't run the "click dialog" node alone from Ubot as it seems like the Dialog won't let me set the focus anywhere else... Any idea? Thanks !! Cheers, Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted March 11, 2016 Report Share Posted March 11, 2016 Hi DjProg, I think i know the problem you are having, .. this may help http://wiki.ubotstudio.com/wiki/Click_Dialog_Button sorry if thats not what you mean CheersCJ EDIT : Apologies DjProg, i re-read your post and see you have already tried this, there are extra instructions here : you would need to scrape the name of the site, then create a folder with that name,then follow the instructions in :http://wiki.ubotstudio.com/wiki/Click_Dialog_Button source : http://network.ubotstudio.com/forum/index.php/topic/15616-download-file-clicking-dialog-box/?do=findComment&comment=89297 CJ Quote Link to post Share on other sites
DjProg 3 Posted March 11, 2016 Author Report Share Posted March 11, 2016 Hello, Unfortunately this simply doesn't work at all. Somehow the click dialog doesn't work with this modal window, it simply doesn't seem to do anything: the modal window appear and stay there... Any other idea? Cheers, Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.