X
Tap here to go to the mobile version of the site.

Support Forum

Disable "File Already Exists Do You Want To Replace" Confirmation

Posted

I have automated FF to repeatedly save web pages as .txt files via the use of Selenium and VB. However, if I attempt to save a web-page as the same name as one already saved I get the warning "file.name already exists. Do you want to replace it?"

I have tried to disable this overwrite-confirmation via the about:config settings (and everything else I can think of) with no success.

Is there a way to silently overwrite files having the same name within a given directory.

Note: I am using FF version 40.0 as newer versions (somewhere between 40 and 50) do not play nicely with Selenium.

Thank you kindly,

Trip

I have automated FF to repeatedly save web pages as .txt files via the use of Selenium and VB. However, if I attempt to save a web-page as the same name as one already saved I get the warning "file.name already exists. Do you want to replace it?" I have tried to disable this overwrite-confirmation via the about:config settings (and everything else I can think of) with no success. Is there a way to silently overwrite files having the same name within a given directory. Note: I am using FF version 40.0 as newer versions (somewhere between 40 and 50) do not play nicely with Selenium. Thank you kindly, Trip

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

More Information

Question owner

I threw this in as a work around....

If Not Dir(strSaveInFolder & strSaveAsName) = vbNullString Then

     Kill strSaveInFolder & strSaveAsName

End If

But, I'd still love to know if there is a way to do this in FF as it would be cleaner.

Thanks!

I threw this in as a work around.... If Not Dir(strSaveInFolder & strSaveAsName) = vbNullString Then Kill strSaveInFolder & strSaveAsName End If But, I'd still love to know if there is a way to do this in FF as it would be cleaner. Thanks!
FredMcD
  • Top 10 Contributor
4224 solutions 58977 answers

The warning "file name already exists" is there in case someone makes a misteak, missteak, err......mistake.

You could always just press the "Yes" choice to overwrite the old.

The warning "file name already exists" is there in case someone makes a misteak, missteak, err......mistake. You could always just press the "Yes" choice to overwrite the old.