I suggest you could directly change the default download location in Edge via the Edge settings. # code for navigating to downloads page and clicking on download = Code: = Selenium::WebDriver. After checking the selenium EdgeDriver library and the Microsoft Edge WebDriver document, it seems that there is no way to set the change the download file path via the selenium Edge webdriver. In this case, we want move it to the D drive, so navigate to the D drive and select OK, then Apply. To change the location of your Download folder, click the Move button and navigate to where you would like to move your download folder. Once you run the test and download the file, the file should download to the specified location above. Is there any way to set my default download location at runtime?Ĭhrome Code: = Selenium::WebDriver.for :chrome Right click the Downloads folder and select Properties from the dialogue menu. ![]() When I want to execute for chrome I had a method named "download_path", its value can be changed at run-time and when download file it will be saved at my destination path.īut, when I execute the same code for edge there is no method support for "download_path" in edge. Besides, you could also try to change the. I want to simulate file download scenario. After checking the selenium EdgeDriver library and the Microsoft Edge WebDriver document, it seems that there is no way to set the change the download file path via the selenium Edge webdriver. ![]() ![]() I was using selenium-ruby for automating browser application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |