Currently, I am creating load tests using the Jmeter
tool along with the WebDriver Sampler plugin. Despite my efforts to resolve an issue with the mouseover function by implementing various solutions from platforms like Stack Overflow, none of them seem to work.
WDS.sampleResult.sampleStart()
var logowanieMenu = WDS.browser.findElement(pkg.By.id('ctl00_MainMenun0'))
logowanieMenu.mouseover()
WDS.sampleResult.sampleEnd()
java.lang.Thread.sleep(800)
Alternatively,
WDS.sampleResult.sampleStart()
var logowanieMenu = $('#ctl00_MainMenun0')
logowanieMenu.mouseover()
WDS.sampleResult.sampleEnd()
java.lang.Thread.sleep(800)
I have also experimented with a combination of logowanieMenu.hover()
and logowanieMenu.focus()
.
In order to address this issue, I believe that importing the jQuery library into the script or creating a JavaScript mouseover event could be potential solutions.