我尝试为Chrome驱动程序加载GWT插件,Selenium Chromedriver causes Chrome to start without configured plugins, bookmarks and other settings的解决方案似乎不起作用。正如我尝试的目录:
capability.setCapability("chrome.switches", ["--load-extension="+Constants.PATH_TO_GWT_PLUGIN);
Constants.PATH_TO_GWT_PLUGIN值:
<>\User Data\Default\Extensions\jpjpnpmbddbjkfaccnmhnkdgjideieim\1.0.11357_0
<>\User Data\Default\Extensions\jpjpnpmbddbjkfaccnmhnkdgjideieim\
我也试过了插件开关:
capability.setCapability("chrome.switches", ["--load-plugin="+Constants.PATH_TO_GWT_PLUGIN);
使用PATH_TO_GWT_PLUGIN:
<>\User Data\Default\Extensions\jpjpnpmbddbjkfaccnmhnkdgjideieim\<PATH TO DLL>
但以上都没有奏效。我错过了什么?