private OperaOptions CreateOptions() { var options = new OperaOptions(); if (BrowserSettings.Settings.IsRemoteRun()) { options.AddAdditionalCapability("version", BrowserSettings.Settings.Remote.Version ?? Constants.DEFAULT_VERSION, true); options.AddAdditionalCapability("enableVNC", true, true); options.AddAdditionalCapability("platform", BrowserSettings.Settings.Remote.Platform ?? Constants.DEFAULT_PLATFORM, true); options.AddAdditionalCapability("name", BrowserSettings.Settings.Remote.Project ?? Constants.DEFAULT_PROJECT, true); } if (BrowserSettings.Settings.IsOptions()) { options.AddArguments(BrowserSettings.Settings.Options); } if (!BrowserSettings.Settings.IsBinaryPath()) { options.BinaryLocation = BrowserSettings.Settings.BinaryLocation; } if (BrowserSettings.Settings.CheckCapability()) { options.AddCapabilities(BrowserSettings.Settings.Capabilities); } return(options); }