from http://seleniumhq.org/docs/03_webdriver.jsp it shows the following Java sample code
(new WebDriverWait(driver, 10)).until(new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver d) {
return d.getTitle().toLowerCase().startsWith("cheese!");
}
});
Is it possible to write the code above in CFML, maybe with help of CF10’s dynamic proxy?
It would be awesome if we can get CF10’s closure to work with the code sample above, but it doesn’t seem like it’ll work because of the expected Java interface and Java return type, am I correct?
I am not sure which is the better option. But it is possible using a dynamic proxy. Just create a cfc that implements the
ExpectedConditioninterface:Then create an instance of the proxy and pass it into the constructor of
WebDriverWait