internet explorer - VBA to download automatically generated files from a webpage requiring login -


i trying download , save specific location further processing automatically generated file portal requires login. makes impossible me copy of actual data, here did far:

successfully

  1. created internet explorer instance
  2. navigated desired url , logged in
  3. navigated desired url after login

but got stuck. file i'm trying download not have static url, don't know how it. javascript starts download in ie, have been unable find hwnd's of buttons in download dialog (using windows 7, class other "button").

the javascript initiates download generating url , navigating url , like:

url="domain" + var + "string" + var=; goto url 

i can generate url in program well, when download contents of url, html document , not file want.

thanks in advance help.

generating url , trying download contents of document not right path. instead, navigated url, resulted in download initiation.

i managed automate download window using findwindow , findwindowex. using spy++ able see buttons not directly children of download window, there more "windows" different classes in between.

i think try more "intelligence" before assume in future.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -