The extention I wrote looks like this:
this.doOpen("https://gauth.apps.gbraad.nl/");
this.makePageLoadCondition(30);
var element = this.browserbot.findElement("//p[contains(.,'" + account + "')]//preceding::h3[1]");
var key = core.text.getElementText(element);
LOG.debug("Key: " + key);
this.doOpen("/Account/Login");
this.makePageLoadCondition(30);
this.doType("//*[@id='Email']", account);
var usernameField = this.browserbot.findElement("//*[@id='Email']");
var passwordField = this.browserbot.findElement("//*[@id='Password']");
core.events.setValue(usernameField, account);
core.events.setValue(passwordField, password);
this.doClick("//button[contains(.,'Sign In')]");
I keep getting the error that it can not find the element, since the page is not loaded yet. Any Ideas?