public static void Client() { var data = TestEnvironment.LoadJson(); WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username); WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail()); WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password); WebDriverUtils.ClickAction(LoginPageObjects.SignInButton()); WebDriverUtils.ClickAction(LoginPageObjects.YesButton()); WebDriverUtils.ClickAction(LoginPageObjects.DoneButton()); WebDriverUtils.ClickAction(ClientPageObjects.ClientTab()); }
public void ClientTest() { ILog log = LogManager.GetLogger("ErrorLog"); try { ClientAction.Client(); Assert.AreEqual(TestEnvironment.LoadJson().ClientSearch.Text, WebDriverUtils.TextChecker(ClientPageObjects.ClientSearchText())); log.Info(System.Reflection.MethodBase.GetCurrentMethod()); log.Info(LoginPageObjects.SuccessMessage()); } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod()); log.Error(LoginPageObjects.FailedMessage() + ex.Message); Assert.Fail(ex.Message); } }