Posts

Change Default Download Path Of Chrome Browser Using Selenium

Image
Hello, Welcome to the first Blog by me on one of the very simple yet important aspects of creating a Test Automation Framework. Changing/Setting up the Default path to Download files while executing a script. Downloading files in the correct folder is one of the crucial steps when doing Test Automation of a Web Application. By default, files are downloaded in the Download folder under User Directory typically the path address is C:\Users\<User_Name>\Downloads . But if the user wants to reuse the downloaded file or verify the content of the file, then it may become hard to find the right file among all the other already downloaded files/folders. So we can always change the path of Download directory and save files at our desired location which is always the right choice to be done inside a framework. This path should remain inside our Project Directory Workspace folder so as it is easy to find when used by a new person. Doing it inside our project structure would guarantee a cons...