How would the Java explicit wait example here be written in Scala:
WebDriver driver = new FirefoxDriver();
driver.get("http://somedomain/url_that_delays_loading");
WebElement myDynamicElement = (new WebDriverWait(driver, 10))
.until(new ExpectedCondition<WebElement>(){
@Override
public WebElement apply(WebDriver d) {
return d.findElement(By.id("myDynamicElement"));
}});
It would look very similar. Some types and parenthesis could be omitted. But as long there is no special Scala API that uses some of the Scala features, it would look something like this (maybe more dots could be comitted, too):