wdClick(By.id("btnJoinCourse"));
waitForElementText(By.id("statusMessage"),
"Registration key is invalid.");
WebElement dataform = driver.findElement(By.id("dataform"));
if (dataform.findElements(By.tagName("tr")).size() == 1) {
// This time the correct one
waitForElementPresent(By.id("regkey"));
wdFillString(By.id("regkey"), s.courseKey);
System.out.println("key for " + s.name + " : " + s.courseKey);
wdClick(By.id("btnJoinCourse"));