Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

Changing the location in Save As dialogue popup

$
0
0

Hi all,

 

I'm trying to download a file from a webpage using IE as my browser. How it works is, I click a link called Download Selected File and then I'm prompted with the small bar at the bottom of the page that says..

 

    "Do you want to open or save...." 

 

I click the arrow next to Save, and then click Save As. 

 

I'm then prompted with the Save As window, which is where I would like to change the location. What I originally planned on doing is adding the location field and setting it's text to the location that I want, but the object does not have any SetText methods.

 

I've used Record (script) to hit all of these objects, if there's another (better) way please share.

 

Here's what I've got now:

 

Sub Test1
  Dim browser, loc
  Set browser = Aliases.browser
  'Click the arrow next to Save to display the drop down   
  Call browser.BrowserWindow.FrameNotificationBar.Notification.Save.Item.Click(6, 12)
  'Click Save As
  Call browser.wnd32768.Click(69, 33) 
  'Get our location field object
  Set loc = Aliases.browser.dlgSaveAs.WorkerW.ReBarWindow32.AddressBandRoot.msctls_progress32.BreadcrumbParent.location_bar
  'No way to set it's text.
   loc.SetText?
End Sub

 


Viewing all articles
Browse latest Browse all 20990

Trending Articles