Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported Command-Line Flag #87

Open
krb-vci opened this issue Feb 23, 2021 · 2 comments
Open

Unsupported Command-Line Flag #87

krb-vci opened this issue Feb 23, 2021 · 2 comments

Comments

@krb-vci
Copy link

krb-vci commented Feb 23, 2021

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.

@iamEvara
Copy link

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

@pbi-qfs
Copy link

pbi-qfs commented May 4, 2021

This is a duplicate of #83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants