login method
Implementation
@override
Future<Online> login(Online browser) async {
try {
var pss = await password.password;
await browser
.visit(url.url)
.set(Input.WithId('logonuidfield'), username)
.set_secret(Input.WithId('logonpassfield'), pss)
.click(Input.WithName('uidPasswordLogon'))
.wait(Waitable.PageLoaded())
.wait(Waitable.ElementVisible(WithId('ToolbarOkCode')));
} catch (e) {
print(e);
}
return browser;
}