0

Формат драйвера, ниже прописал ошыбку ChromeOptions options = new ChromeOptions(); options.AddUserProfilePreference("profile.default_content_setting_values.plugins", 1); options.AddUserProfilePreference("profile.content_settings.plugin_whitelist.adobe-flash-player", 1); options.AddUserProfilePreference("profile.content_settings.exceptions.plugins.,.per_resource.adobe-flash-player", 1); options.AddUserProfilePreference("PluginsAllowedForUrls", "http:/ "); options.AddUserProfilePreference("PluginsAllowedForUrls", TestDataResource.MainPageURL); Browser = new ChromeDriver(options);

Выскакиевает даная ошыбка, драйвер лежит в корне, подскажите если есть идеи: OpenQA.Selenium.DriverServiceNotFoundException : The chromedriver file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html. TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

3

1 ответ 1

1

Укажите расположение вашего драйвера в настройках

options.BinaryLocation = "\path\to\chrome";

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.