Someone must have done this before, I am trying to work out a comparable command to use in jmeter webdriver sampler (javascript) how to do a waitForPopUp command...there must be a way...I have something that works for waiting for an element, but I can't work it out for a popup..
hope someone can help
thanks
Karl
UPDATE
I am using this code for waiting for an element -
var wait = new support_ui.WebDriverWait(WDS.browser, 5000)
WaitForLogo = function() {
var logo = WDS.browser.findElement(org.openqa.selenium.By.xpath("//img[@src='/images/power/ndpowered.gif']"))
}
wait.until(new com.google.common.base.Function(WaitForLogo))
And this works, but I can't work out how reuse this to wait for a popup, that has no name, in java I have used -
selenium.waitForPopUp("_blank", "30000");
selenium.selectWindow("_blank");
And that works, but I can't work out an comparable javascript that will work in jmeter for performance, as I can't get java working in jmeter.
waiting for an element? - Andersson