public static void NavigateToCategory(String category) { var title = SeleniumGetMethods.Parent(SeleniumGetMethods.GetParentNode(SeleniumGetMethods.GetWebElementInnerHTML(category))); SeleniumGetMethods.GetFirstChild(SeleniumGetMethods.GetChild(2, title)).Click(); }