How to change the file name downloading using Selenium ChromeDriver?

0 votes

I’m using a code to download a file automatically. But I want to change the file name before downloading. Can anyone suggest me the for it?

IWebElement button = driver.FindElement(By.Id("ImagshowMR"));

Actions action = new Actions(driver);

action.MoveToElement(button).Perform();

button.Click();
May 2, 2018 in Selenium by Martin
• 4,220 points
3,449 views

1 answer to this question.

0 votes
This is not possible by just using selenium, assuming you are attempting to enter a file name in the standard windows prompt that appears as you download something.You can however look at integrating another UI testing framework into your tests, such as CodedUI, AutoIT, or White
answered May 2, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
0 answers
0 votes
1 answer

How to auto-refresh the ChromeDriver using Selenium Webdriver?

You can use this command. Also, refresh ...READ MORE

answered May 10 in Selenium by Vaishnavi
• 1,160 points

edited May 10 by Omkar 603 views
0 votes
0 answers

In Selenium, how to give a name to a file when it is downloading?

I'm working with a Selenium script where I'm ...READ MORE

Jul 15 in Selenium by Vaishnavi
• 1,160 points
60 views
0 votes
1 answer

How to scroll the Page up or down in Selenium WebDriver? (using java)

Its pretty simple. Check out the below ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,090 points
7,238 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
598 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
903 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
587 views
+1 vote
1 answer
0 votes
3 answers