Opera Driver Unsupported Command-Line Flag with Selenium

278 views Asked by At

I am using the current opera driver with Selenium for testing of a website (so that we can support Opera as an approved browser for our website). I code in C#.

When I open Opera I get a popup at the top of the screen that states:

You are using an unsupported command-line flag: --enable-blink-features=ShadowDOMV0. Stability and security will suffer.

I currently setup my Opera instance with the following code:

string operaExeLocation = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\AppData\Local\Programs\Opera\74.0.3911.107\opera.exe"; 

OperaDriverService service = OperaDriverService.CreateDefaultService(@"C:\Opera\", "operadriver.exe");
var operaOptions = new OperaOptions
{
   BinaryLocation = operaExeLocation,
   LeaveBrowserRunning = false
};
driver = new OperaDriver(service, operaOptions);

I suspect that the unsupported flag can be turned off in the operaOptions - but I haven't found any documentation on how to do that. Please help if you are familiar with setting up the driver.

enter image description here

0

There are 0 answers