0

Opera で selenium-server-standalone-2.33.0.jar を使用しようとしていますが、いくつかのプロファイル設定を変更する必要があります。C# プロジェクトで OperaProfile オブジェクトを作成し、次のように使用することができます。

OperaProfile profile = new OperaProfile(); // Error: Type or namespace 'OperaProfile' could not be found
profile.preferences().set("User Prefs", "Ignore Unrequested Popups", false);
DesiredCapabilities capabilities = DesiredCapabilities.Opera();
capabilities.SetCapability("opera.profile", profile);
IWebDriver driver = new RemoteWebDriver(new Uri("http://host:4444/wd/hub"), capabilities);

この場合、エラーメッセージが表示されました

タイプまたは名前空間「OperaProfile」が見つかりませんでした

4

1 に答える 1