我在做
WDS.AddExtension(Path.GetFullPath("Ghostery_v5.4.1.crx"));
我知道它的错误请在jmeter中告诉我如何在镀铬曲线中添加chromedriver扩展
Stacktrace in jmeter
2015/01/27 12:03:52 INFO - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: Current thread name: 'xxxxx1-1', has browser: 'ChromeDriver: chrome on XP (606ce1d4c34688e1062579fd676f16a7)'
2015/01/27 12:03:52 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function AddExtension in object com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverScriptable@3a0ee49f. (<Unknown source>#1) in <Unknown source> at line number 1
xxxx
答案 0 :(得分:0)
我不确定如何使用JMeter
和webdriver
,但在webdriver
中,它就像
var chromeOptions = new ChromeOptions();
chromeOptions.AddExtension("something.crx");