I am using Selenium chrome driver to automate download of xml file. But somehow the download is prompting "this type of file can harm your computer.Do you want to keep the file anyway?" How can i remove this prompt. Below is the chrome option parameter i am using.
$ChromeOptions = New-Object OpenQA.Selenium.Chrome.ChromeOptions
$ChromeOptions.AddArguments(@(
"--disable-extensions",
"--safebrowsing-disable-download-protection",
"--safebrowsing-disable-extension-blacklist",
"--disable-download-protection",
"--disable-notifications",
"--ignore-certificate-errors"))
$ChromeDriver = New-Object OpenQA.Selenium.Chrome.ChromeDriver($chromeOptions)
$ChromeDriver.Navigate().GoToURL($YourURL)
Most of the site do not provide powershell version of the code but Python code is available
[Link] How to disable 'This type of file can harm your computer' pop up