Sha256: 1e22ce35debb856a8df5cec1a307ea816dc3868754c3f2074404d7f7d8580744

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

module Goodwill
  module CSSPaths
    # Auction Page
    # http://www.shopgoodwill.com/viewItem.asp?itemID=<itemID>
    BIDS_PATH = 'body > section > div.container > div:nth-child(3) > div:nth-child(2) > ul.product-data > li:nth-child(3) > span.num-bids'
    BIN_END_TIME_PATH = '/html/body/section/div[2]/div[3]/div[2]/ul[2]/li[7]'
    BUY_IT_NOW_PATH = '/html/body/section/div[2]/div[3]/div[2]/div[2]/div[1]/div/div/div/button'
    CURRENT_PRICE_PATH = 'body > section > div.container > div:nth-child(3) > div:nth-child(2) > ul.product-data > li:nth-child(4) > span'
    END_TIME_PATH = '/html/body/section/div[2]/div[3]/div[2]/ul[2]/li[10]'
    IN_PROGRESS_ROWS = '#my-auctions-table > tbody > tr'
    ITEMID_PATH = 'body > span > div.itemdetail > div:nth-child(2) > div:nth-child(2) > div > table > tbody > tr:nth-child(3) > td'
    ITEM_TITLE_PATH = 'body > section > div.container > div:nth-child(3) > div:nth-child(2) > h1'
    SEARCH_ROWS = '#search-results > div > section > ul.products > li'
    SELLER_ID_LINK = '/html/body/section/div[2]/div[4]/div/section/div/ul/li[4]/a'
    SELLER_PATH = 'body > section > div.container > div:nth-child(3) > div:nth-child(2) > ul.product-data > li:nth-child(8) > a'
    SHIPPING_PATH = 'body > p:nth-child(7) > b'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
goodwill-0.4.4 lib/goodwill/csspaths.rb
goodwill-0.4.3 lib/goodwill/csspaths.rb
goodwill-0.4.1 lib/goodwill/csspaths.rb
goodwill-0.4.0 lib/goodwill/csspaths.rb