예제 #1
0
        public static bool PaidOnly(IWebElement div)
        {
            var    columns = UGSearchResult.GetColumns(div);
            string type    = columns[3].Text.Trim().ToLower();

            return(type == "official" || type == "pro");
        }
예제 #2
0
        public UGSearchResult(string artist, IWebElement div)
        {
            this.artist = artist;
            var columns    = UGSearchResult.GetColumns(div);
            var nameCell   = columns[1];
            var ratingCell = columns[2];
            var typeCell   = columns[3];

            if (this.HasRating(ratingCell))
            {
                this.numRatings = this.GetNumRatings(ratingCell);
                this.rating     = this.GetRating(ratingCell);
            }
            this.songAndVer      = nameCell.Text.Trim();
            this.href            = nameCell.FindElement(By.TagName("a")).GetProperty("href");
            this.canStoreContent = this.TextFormattedContent(typeCell);
        }