Пример #1
0
        public static void DeleteComment(String comment)
        {
            var commentRootElem = SeleniumGetMethods.Parent(SeleniumGetMethods.GetWebElementInnerHTML(comment));
            var childs          = SeleniumGetMethods.GetChilds(commentRootElem);
            var editeButton     = SeleniumGetMethods.GetFirstChild(SeleniumGetMethods.GetFirstChild((IWebElement)childs[3]));
            var delete          = SeleniumGetMethods.GetNextSibling(editeButton);

            delete.Click();
        }