public void LessThan5Chars() { NavigateTo.LoginFormThroughtTheMenu(Driver); Actions.FillLoginForm(Config.Credentials.Invalid.Username.FourCharacters, Config.Credentials.Valid.Password, Config.Credentials.Valid.Password, Driver); alert = Driver.SwitchTo().Alert(); Assert.AreEqual(Config.AlertsMessages.UsernameLenghtOutOfRange, alert.Text); alert.Accept(); }