Esempio n. 1
0
        public static void NotFound(string idOrName, FindBy findBy)
        {
            ElementCache.Clear();
            UIObject ui = findBy == FindBy.Name ? TryFindElement.ByName(idOrName) : TryFindElement.ById(idOrName);

            Verify.IsNull(ui, "Expected not to be able to find element with " + findBy.ToString() + " '" + idOrName + "'");
        }
Esempio n. 2
0
        public static void Found(string idOrName, FindBy findBy)
        {
            UIObject ui = findBy == FindBy.Name ? TryFindElement.ByName(idOrName) : TryFindElement.ById(idOrName);

            Verify.IsNotNull(ui, "Expected to find element with " + findBy.ToString() + " '" + idOrName + "'");
        }