Use following AUTOIT script:
WinWait("[Class:MozillaDialogClass]")
WinActivate("[Class:MozillaDialogClass]","")
Send("!s");
Send("{ENTER}")
Try out this and let me know?
Thanks
-Amit
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to
seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msg/selenium-users/-/-XxZ6V3XhUoJ.
For more options, visit https://groups.google.com/groups/opt_out.
Use following AUTOIT script:
WinWait("[Class:MozillaDialogClass]")
WinActivate("[Class:MozillaDialogClass]","")
Send("!s");
Send("{ENTER}")
Try out this and let me know?
Thanks
-Amit
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Rajendra
Sent: Wednesday, September 26, 2012 5:09 PM
To: seleniu...@googlegroups.com
Subject: [selenium-users] Webdriver to save the excel sheet
Hi All,
I have a scenarion,where i have to download excel file and save it on my local drive, Will driver supports to Click on "Save" /Open while donwloading the Excel sheet?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleni...@googlegroups.com.
To unsubscribe from this group, send email to selenium-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/-XxZ6V3XhUoJ.
For more options, visit https://groups.google.com/groups/opt_out.
@Rajendra
Alternatively you can use browser capability or do some settings on profile that do not ask to save the file location. This leads to download the file behind the scene and then sort the dir with java code and read the file , whatever you want to do with that file J.
To post to this group, send email to
seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msg/selenium-users/-/ieeOkei2QkIJ.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ieeOkei2QkIJ.
For more options, visit https://groups.google.com/groups/opt_out.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ieeOkei2QkIJ.
For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, October 3, 2012 5:41:20 PM UTC+5:30, Rajendra wrote:
So, all of the above works well for Firefox and Chrome, but this won't work for IE. I've found that for IE the alert api works pretty well. In short, if you right click on the link to the file and then use the keyboard shortcut to save as, you can then set the path on the dialog and click to save, all without having to use anything other than webdriver. This also seems to work much better than autoit or anything else when running on a machine that's locked.
For example using watir-webdriver/ruby.
#Click the link and choose save_as
b.link(:text => @filename).when_present.right_click
b.send_keys("A")
# Set the path and then click 'Save'
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Rajendra
Sent: 26 September 2012 12:39
To: seleniu...@googlegroups.com
Subject: [selenium-users] Webdriver to save the excel sheet
Hi All,
I have a scenarion,where i have to download excel file and save it on my local drive, Will driver supports to Click on "Save" /Open while donwloading the Excel sheet?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.