Reputation: 11
I am not able to scroll down a page while using JMeter with WebDriversampler and java. I have tried below but not works for me var element = WDS.browser.findElement(org.openqa.selenium.By.id('some id')) - locate the Web Element you want to "see" WDS.browser.executeScript('arguments[0].scrollIntoView(true);', element) - bring the element into the visible area
Upvotes: 0
Views: 447
Reputation: 168157
There is no "java" in the WebDriver Sampler, if you choose java
from the language dropdown it means Beanshell which you really shouldn't be using since JMeter 3.1
For JavaScript the code you copied and pasted from this answer should work just fine.
For Groovy you need to change var
to def
.
Upvotes: 0