Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我们在哪里可以找到Selenium中Chrome功能中使用的首选项名称(键)?_Selenium_Selenium Webdriver_Automation_Selenium Chromedriver - Fatal编程技术网

我们在哪里可以找到Selenium中Chrome功能中使用的首选项名称(键)?

我们在哪里可以找到Selenium中Chrome功能中使用的首选项名称(键)?,selenium,selenium-webdriver,automation,selenium-chromedriver,Selenium,Selenium Webdriver,Automation,Selenium Chromedriver,要将用户配置文件设置为Selenium驱动程序,我们使用功能 HashMap<String, Object> chromePrefs = new HashMap<String, Object>(); chromePrefs.put("profile.default_content_settings.popups", 0); chromePrefs.put("download.default_directory", downloadFilepath); co.set

要将用户配置文件设置为Selenium驱动程序,我们使用功能

HashMap<String, Object> chromePrefs = new HashMap<String, Object>();    
chromePrefs.put("profile.default_content_settings.popups", 0);
chromePrefs.put("download.default_directory", downloadFilepath);
co.setExperimentalOption("prefs", chromePrefs);
HashMap chromePrefs=newhashmap();
chromePrefs.put(“profile.default\u content\u settings.popups”,0);
chromePrefs.put(“download.default\u目录”,downloadFilepath);
co.setExperimentalOption(“prefs”,chromePrefs);
我们在哪里可以找到这些首选项的名称,即,
profile.default\u content\u settings.popups,download.default\u directory

您可以在

下载。默认目录将如下所示

const char kDownloadDefaultDirectory[] = "download.default_directory";
你可以在网上找到它

下载。默认目录将如下所示

const char kDownloadDefaultDirectory[] = "download.default_directory";