I running selenium tests with c# on a 64-bit machine windows machine.
I have Opera 69.0.3686.77 installed and am using the latest 64-bit operadriver.
My code tests multiple browsers, so I use an iWebDriver driver, and set the properties based on which browser is chosen. My code is below.
With opera I am getting a new warning message that never appeared until the latest Opera update. It states
"You are using an unsupported command-line flag: --enable-blink-features=ShadowDOMV0. Stability and security will suffer."
Does anyone here know how about that flag - is it needed by selenium? Is there an alternative? Is there a way to turn it off when setting opera options?
Also - as long as I'm asking, ever since i started testing Opera (a year ago) I've been getting an alert when Opera opens with a title of "Manage Extensions," stating:
"We are temporarily displaying all of your active browser extensions so you can review which of them should be in use."
and continues:
"Extensions may change the way Opera works and could impact security of your data. We advise you to uninstall extensions you do not recognize."
Is there a way to suppress that alert or clear it when it appears?
My code for Opera driver looks like this:
IWebDriver driver;
string operaExeLocation = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\AppData\Local\Programs\Opera\69.0.3686.77\opera.exe";
OperaDriverService service = OperaDriverService.CreateDefaultService(@"C:\Opera\", "operadriver.exe");
var operaOptions = new OperaOptions
{
BinaryLocation = operaExeLocation,
LeaveBrowserRunning = false
};
driver = new OperaDriver(service, operaOptions);