public void ValidatePresenceErrorMessage(string message) { string xPath = ""; try{ if (!String.IsNullOrEmpty(message)) { xPath = String.Format(genericXpath_loginErrorMessage, message); InfraLabel.ValidateExistence(xPath); } } catch (Exception e) { throw new Exception("Not found element: " + xPath, e); } }
public void ValidateExistenceLabelByValue(string value) { string xPath = ""; try { if (!String.IsNullOrEmpty(value)) { xPath = String.Format(genericXpath_span, value); InfraLabel.ValidateExistence(xPath); } } catch (Exception e) { throw new Exception("Not found element: " + xPath, e); } }