Hi
This is a recent known issue ACD we are in the most of trying to fix it. The options are either to downgrade to an older version of Firefox, use chrome instead, or wait for a fox from the JMeter plugins team.
Sorry for any inconvenience caused.
Regards
CP
Hi,--
I am using Jmeter 2.9 and have installed the Web Driver Sampler plugin. A problem I am having is that the firefox browser instance will open, but my test URL is not present in the browser and thus the page never loads. The browser just remains in the same state until I shutdown the test. Here is my test code.
WDS.sampleResult.sampleStart()
WDS.browser.get('http://www.google.com')
WDS.sampleResult.sampleEnd()
My Jmeter runs other tests ok. Does any one know why this problem may be occurring?
Thanks,
Seth
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
http://jmeter-plugins.org/wiki/ChromeDriverConfig/
Hi,
Appreciate the update. Is there documentation on how to use the Chrome browser handy?
Thanks!
Seth
Hey CP ,
Hi
If you are using the latest version of the WebDriver plugins, you should try the latest Firefox. Of this doesn't work please let us know and I can look into it.
With respect to chrome not working. Is that the current version of chrome driver?
Regards
CP
For more options, visit https://groups.google.com/d/optout.
Hello,
This is a pretty late comment/reply/question on this post.
I just started using Webdriver plugin, and i just loved it. But it will take
time for me to learn how to use it. While searching a solution for the problem
i am facing i came to know about this post.
I am trying to use variables defined in jmeter inside Webdriver sampler.
I have defined two variables in jmeter in 'User Defined Variables' named
'username' and 'password'
As in one of the previous post Vincent explained below in textfield of the Webdriver Sampler I have added :
'${username} ${password}' (with space in-between two parameters)
and below is my script:
var pkg = JavaImporter(org.openqa.selenium)
var support_ui = JavaImporter(org.openqa.selenium.support.ui.WebDriverWait)
var wait = new support_ui.WebDriverWait(WDS.browser, 5000)
var username = WDS.args[0]
var password = WDS.args[1]
WDS.sampleResult.sampleStart()
WDS.browser.get('xxxxxxxxxxxxxxxxxxx')
var name = WDS.browser.findElement(pkg.By.id('UserName'))
name.click()
name.sendKeys(username)
var pwd = WDS.browser.findElement(pkg.By.id('Password'))
pwd.click()
pwd.sendKeys(password)
var button = WDS.browser.findElement(pkg.By.id('sign-in'))
button.click()
WDS.log.info(WDS.name
+ ' has logged an entry');
WDS.sampleResult.sampleEnd()
But still i am getting below error:
Response code: 500
Response message: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException:
Can't find method org.openqa.selenium.htmlunit.HtmlUnitWebElement.sendKeys(java.lang.String).
(<Unknown source>#11) in <Unknown source> at line number 11
If you could please look into this.
Thanks,
Anuja
Can you send the HTML snippet that you are trying to test? I can't see any problem at this point.
For more options, visit https://groups.google.com/d/optout.
Hi
I haven't done this myself but you are more than welcome to try. I suspect you might need multiple jmeter instances.
Other people on this forum may have had more experience with this. Anyone?
CP