Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }