selenium - JMeter with Webdriver Sampler - Browser window not opening -


i running jmeter webdriver plugin installed on windows 7. current test plan contains webdriver sampler , firefox driver config. when try run test plan, nothing happens. there nothing recorded in view results tree window, , remaining test indicator in top right hand corner counts down 0 without happening.

when deactivate webdriver sampler , firefox driver config elements, remaining tests run without problem.

is there bug software, or missing something? code below, if helps.

var pkg = javaimporter(org.openqa.selenium)

wds.sampleresult.samplestart()

wds.browser.get('https://test.test.test.test') var username =

wds.browser.findelement(pkg.by.id('username')).sendkeys([wds.args[0]])

var password =

wds.browser.findelement(pkg.by.id('password')).sendkeys([wds.args[1])

wds.sampleresult.sampleend()

i have installed firefox 26, recommended supported browser, it's not there's no compatible browser.

my main question - why doesn't browser window open? why other tests in test plan fail run when config elements active?

in 99% of cases answer should in jmeter.log file. in meantime couple of recommendations:

  • add following line system.properties file (lives in /bin folder of jmeter installation)

    webdriver.firefox.bin=/path/to/your/firefox.exe 

    see https://code.google.com/p/selenium/wiki/firefoxdriver page other firefox-related properties

  • locate duplicate http* libraries httpcore*.jar httpmime.jar etc. , remove ones lesser version

  • restart jmeter pick property , changes up

check out the webdriver sampler: top 10 questions answered guide other tips , tricks


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -