public CategoryPage GoToRandomCategory() { var size = productCategories.Count; var random = new Random().Next(0, size); HoverOverElement(productCategoryButton, nameof(productCategoryButton)) .ClickElement(productCategories.ElementAt(random), nameof(productCategories)); return(PageObjectFactory.CreateCategoryPage(driver)); }