Exemple #1
0
        public static Status TextIsContainsOnElement(By by, string text)

        {
            return(StatusHelper.ConvertBoolToPassOrFailStatus(GetTextFromElement(by).Contains(text)));
        }
Exemple #2
0
        public static Status UrlIsCorrect(string expectedUrl)

        {
            return(StatusHelper.ConvertBoolToPassOrFailStatus(GetCurrentURL().CompareTo(expectedUrl) == 0));
        }
Exemple #3
0
        public static Status UrlEndsWith(string endOfUrl)

        {
            return(StatusHelper.ConvertBoolToPassOrFailStatus(GetCurrentURL().EndsWith(endOfUrl)));
        }
Exemple #4
0
        public static Status TextIsCorrect(IWebElement elemet, string text)

        {
            return(StatusHelper.ConvertBoolToPassOrFailStatus(GetTextFromElement(elemet).CompareTo(text) == 0));
        }