operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Unsupported Command-Line Flag

Open krb-vci opened this issue 4 years ago • 2 comments

I am using the 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.

krb-vci avatar Feb 23 '21 19:02 krb-vci

try this: options.AddExcludedArgument("enable-automation"); options.AddAdditionalCapability("useAutomationExtension", false) ;

iamEvara avatar Mar 17 '21 09:03 iamEvara

This is a duplicate of #83

pbi-qfs avatar May 04 '21 06:05 pbi-qfs