Need help with JMeter

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();