Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Saving downloaded file from the Selenium Webdriver into Windows OS through IE

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to handle downloaded file from Selenium Webdriver into Windows OS through IE to save. Please see the attachment
downloadSave.PNG
[Thumbnail for downloadSave.PNG]
 
Ranch Hand
Posts: 63
1
Android Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my understanding Selenium Webdriver can handle the starting of a download. Then the used browser will download the file and store it to disk.

Further handling of the file depends on the configuration in your operating system and how given file types are processed or read. This should be out of reach of Web client testing tools such as Selenium or Testcafe.

https://www.browserstack.com/guide/download-file-using-selenium-python

For doing more testing you may consider using Robot Framework that has broader testing functionality and is NOT restricted to the browser. Robot Framework may use Selenium through an adapter module and may do additional checks and actions with downloaded content.

Some article/tutorial:
https://www.lambdatest.com/blog/robot-framework-tutorial/

Robot FW links:
https://robotframework.org/
https://robotframework.org/SeleniumLibrary/
reply
    Bookmark Topic Watch Topic
  • New Topic