J Meter Web Driver Sampler does not navigate to the url Specified
Alberto last edited by user
Can someone please help me on the problem below: I have added a ThreadGroup and Firefox driver config and Web Driver Sampler. I have just written the below code in Web Driver Sampler:
WDS.sampleResult.sampleStart() WDS.browser.get('http://google.com') WDS.sampleResult.sampleEnd()
When I save this and run, the Firefox browser is getting launched, but it is not navigating to 'http://google.com'.
Can anyone please let me know why this is happening. I have tried this in 2 versions of Firefox, with the same result.
You should use the latest version of JMeter, Firefox and Webdriver plugin.
- WebDriver Sampler plugin 1.3.0 supports Firefox 39
- WebDriver Sampler plugin 1.2.1 supports Firefox 33
- WebDriver Sampler plugin 1.2.0 supports Firefox 26
Once everything is downloaded and configured you will need to delete these files (if not already deleted) from you JMeter lib directory:-
Because you will see that every jar file which is mentioned above will be having two versions like
httpmime-4.5.jarand you need the latest one only, so while your JMeter is closed, delete these old version of files. After that run your script, it should execute correctly.
For more details refer to the link The WebDriver Sampler: Your Top 10 Questions Answered