0
Dim bot As New WebDriver
bot.Start "Chrome", "http://google.com"
bot.Get "/"
它的開始鑲邊但chrome顯示禁用開發者模式擴展彈出窗口。顯示在vba中使用硒禁用開發人員模式彈出式菜單
Dim bot As New WebDriver
bot.Start "Chrome", "http://google.com"
bot.Get "/"
它的開始鑲邊但chrome顯示禁用開發者模式擴展彈出窗口。顯示在vba中使用硒禁用開發人員模式彈出式菜單
隨着chrome options功能,你可以控制很多屬性。關於Java我使用類似的東西來禁用擴展名:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions",
"--disable-autofill-keyboard-accessory-view", "test-type");
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("credentials_enable_service", false);
prefs.put("profile.password_manager_enabled", false);
options.setExperimentalOption("prefs", prefs);
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
capabilities.setCapability("elementScrollBehavior", 1);
如果你發現控制使用VBA功能的方式,你說對了。
請爲您的問題提供更多的背景信息,並說明問題更清楚。 –