public void Login(Account acc) { this.cred = acc.cred; this.acc = acc; CallTrace("Loging to " + cred.Login); Ie.GoTo(Navig.UrlLogin); Frame fra = Ie.Frame(Find.ByName("vibmain")); fra.TextField(Find.ByName("user")).TypeText(cred.Login); fra.TextField(Find.ByName("pin")).TypeText(cred.Pass); fra.Button(Find.ByName("ac")).Click(); CallTrace("Loging successfull."); }
public Account(Credentials cr) { this.cred = cr; this.Id = cr.AccountId; }