示例#1
0
        public void FindMatchingElements(By idToFind, string elementName)
        {
            var elements = PageDriver.FindElements(idToFind);

            if (elements.Count == 0)
            {
                throw new Exception("Not Found: " + elementName);
            }

            ElementHelper helper = new ElementHelper(PageDriver, elements);

            Element = helper;
        }