My Jmeter-webdriver webdriver sampler script is executed finely on chrome browser, whereas when same script is executed the on htmlunitdriver it throws an error.
To configure a HtmlUnitdriver followed the steps:-
Thread Group > Add > Listener > jp@gc- HtmlUnitDriver Config
2016/12/23 14:26:51 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function addEventListener in object [object Window]. (https://test.html
Build info: version: '2.52.0', revision: '4c2593d28', time: '2016-02-11 11:22:43'
System info: host: 'EN09', ip: '192.168.254.2', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: driver.version: HtmlUnitDriver
Please let me know how to run Webdriver sampler script on Htmlunitdriver successfully