im writing a Java code on Jmeter (webdriver) in order to perform a load test, i need to implement implicit wait, something like :
WDS.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
But seems Jmeter is not understanding it, also i tried to use:
def wait = new org.openqa.selenium.support.ui.WebDriverWait(WDS.browser, 5); wait.until(org.openqa.selenium.support.ui.ExpectedConditions.elementToBeClickable(org.openqa.selenium.By.xpath("//a[contains(text(),'More information')]")))
with no use.
The only thing worked with me is :
Thread.sleep(2000);
but it will not work with me when i will run the test with high load.
test plan and CSV files can be found in below URL: https://drive.google.com/file/d/1k5ZjhSEXiFPObwysNYKcwRZN0xxOkAHl/view?usp=sharing
Please have a look on the code and tell me what can i do :(
noting that script language is JAVA there is no option for JavaScript on Jmeter.