Hi! Iāve been trying to run this test but keep failing. If someone could pls help, I would really really appreciate it!
Iām trying to get our siteās game load time but the WebDriver can never find the element #GamePanel > div > div.bottomBarBalance > div.gwt-HTML.bottomBarBalanceTitle. This is the black bar in the bottom of the screen. It also canāt find id=GameCanvas when I tried that. Iām out of ideas!
Hereās the code I used:
var pkg = JavaImporter(org.openqa.selenium); //WebDriver classes
var support_ui = JavaImporter(org.openqa.selenium.support.ui.WebDriverWait); //WebDriver classes
var conditions = org.openqa.selenium.support.ui.ExpectedConditions
var wait = new support_ui.WebDriverWait(WDS.browser, 40);
WDS.sampleResult.sampleStart(); //captures samplerās start time
WDS.sampleResult.getLatency();
WDS.log.info(āSample startedā);
WDS.browser.get(āMichigan Lotteryā); //opens game info page
WDS.log.info(āSample ended - navigated to game info pageā);
wait.until(conditions.presenceOfElementLocated(pkg.By.cssSelector(ā#GamePanel > div:nth-child(2) > div:nth-child(2) > buttonā)));
WDS.sampleResult.sampleEnd();