jmeter如何在镀铬轮廓中添加镀铬扩展

时间:2015-01-27 08:11:16

标签: webdriver jmeter jmeter-plugins

我在做

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

1 个答案:

答案 0 :(得分:0)

我不确定如何使用JMeterwebdriver,但在webdriver中,它就像

一样简单
var chromeOptions = new ChromeOptions();
chromeOptions.AddExtension("something.crx");