public static bool IsHiddenInput(this IWebElement element) { return element.TagName == "input" && element.GetAttribute("type") == "hidden"; }