Previous to my post see the logs and selenium script written using javascript in Jmeter. I want to use the WebDriverWait in my script i.e. written in javascript and I have tried a lot but always get an error and the errors I have recieved at var wait = new org.openqa.selenium.support.ui.WebDriverWait(WDS.browser, 10) :
2020-04-13 15:25:42,689 ERROR c.g.j.p.w.s.WebDriverSampler: TypeError: org.openqa.selenium.support.ui.WebDriverWait is not a function in <eval> at line number 6 2020-04-13 15:25:42,690 ERROR c.g.j.p.w.s.WebDriverSampler: TypeError: org.openqa.selenium.support.ui.WebDriverWait is not a function in <eval> at line number 6 2020-04-13 15:25:44,002 ERROR c.g.j.p.w.s.WebDriverSampler: TypeError: org.openqa.selenium.support.ui.WebDriverWait is not a function in <eval> at line number 6
Can anyone please help me how can I achieve this using JavaScript in my selenium Script ?