搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to disable save/open file model in automation mode, with selenium webdriver using java?

  • 無回覆
  • 2 有這個問題
  • 5 次檢視
more options

I am running test automation scripts written in java, with selenium web driver. I download a file from a page and instantly a model appears asking to open or save the file every time on script execution. Although I have chosen to save the downloaded file in normal mode but that selection doesn't work when browser is launched by automation script. I have attached the screenshot for better understanding. So my question: Is there a way to disable that box for test automation mode, using Firefox options?

I am running test automation scripts written in java, with selenium web driver. I download a file from a page and instantly a model appears asking to open or save the file every time on script execution. Although I have chosen to save the downloaded file in normal mode but that selection doesn't work when browser is launched by automation script. I have attached the screenshot for better understanding. So my question: Is there a way to disable that box for test automation mode, using Firefox options?
附加的畫面擷圖