class BeerForceLocator:
    """Locators for beerforce.sg"""

    # Locators for https://beerforce.sg/pages/all-styles
    beer_collection = '//a[@class="collection-list__link"]/@href'

    # Locators for products page by style,
    # e.g. https://beerforce.sg/collections/ipa
    product_details = '//div[@class="product-card__details"]'
    product_media = '//div[@class="product-card-top"]'

    raw_price = './/span[@class="money"]/text()'

    product_name = './/h2[@class="product-card__title h4"]/text()'
    product_url = './a/@href'
    product_brand = './/h3[@class="product-card__vendor h6"]/text()'
    product_price = './/span[@class="money"]/text()'

    has_next_page = '//span[@class="next"]/a/@href'
    next_page = '//span[@class="next"]/a/@href'

    # Locators for product detail page,
    # e.g. https://beerforce.sg/collections/ipa/products/youngmaster1842islandipa
    product_info = '//div[@class="product-single__content-text rte"]//*[b or strong]//text()'
    product_image_url = '//img[@class="product-single__photo__img js-pswp-img"]/@src'

class BeerForceLocator:
    """Locators for beerforce.sg"""

    # Locators for https://beerforce.sg/pages/all-styles
    beer_collection = '//a[@class="collection-list__link"]/@href'

    # Locators for products page by style,
    # e.g. https://beerforce.sg/collections/ipa
    product_details = '//div[@class="product-card__details"]'
    product_media = '//div[@class="product-card-top"]'

    raw_price = './/span[@class="money"]/text()'

    product_name = './/h2[@class="product-card__title h4"]/text()'
    product_url = './a/@href'
    product_brand = './/h3[@class="product-card__vendor h6"]/text()'
    product_price = './/span[@class="money"]/text()'

    has_next_page = '//span[@class="next"]/a/@href'
    next_page = '//span[@class="next"]/a/@href'

    # Locators for product detail page,
    # e.g. https://beerforce.sg/collections/ipa/products/youngmaster1842islandipa
    product_info = '//div[@class="product-single__content-text rte"]//*[b or strong]//text()'
    product_image_url = '//img[@class="product-single__photo__img js-pswp-img"]/@src'

Locators for beerforce.sg # Locators for https://beerforce.sg/pages/all-styles # Locators for products page by style, # e.g. https://beerforce.sg/collections/ipa # Locators for product detail page, # e.g. https://beerforce.sg/collections/ipa/products/youngmaster1842islandipa