Jump to content
UBot Underground

Saving Dynamically Generated Csv (Dialog Issues)


Recommended Posts

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,

Link to post
Share on other sites

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

 

 

 

Cheers

CJ

 

 

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

Link to post
Share on other sites

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,

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...