class SearchLocators: LB_START_SEARCH = 'text=Start typing to see search results.' LB_NO_RESULTS = '//*[contains(@class, "error__title") and text()="No results found."]' PLACEHOLDER_SEARCH = '//input[contains(@class, "search-input")]' CARDS_TITLE = '//div[contains(@class, "search-page__cards-container__column__header__title") and text()="{}"]' SEARCH_ENTITY_CARD_ITEM = '(//*[contains(@class, "search-page__cards-container__column")]' \ '//*[contains(@class, "search-page__cards-container__column__header__title") ' \ 'and text()="{}"]/../..//*[contains(@class, "search-entity-card--large")])' #//*[contains(@class, "search-page__cards-container__column")]//*[contains(@class, "search-page__cards-container__column__header__title") and text()="{}"]/../..//*[contains(@class, "search-entity-card--large")])[{}] SEARCH_ENTITY_CARD_NAME = SEARCH_ENTITY_CARD_ITEM + '[{}]//*[contains(@class, "search-entity-card__name")]' SEARCH_ENTITY_CARD_BY_ARTIST = SEARCH_ENTITY_CARD_ITEM + '[{}]//*[contains(@class, "search-entity-card__artist")]' SEARCH_ENTITY_CARD_IMG = SEARCH_ENTITY_CARD_ITEM + '[{}]//img' SEARCH_ENTITY_CARD_BTN = SEARCH_ENTITY_CARD_ITEM + '[{}]//*[contains(@class, "search-entity-card__btn")]/button' SEARCH_ENTITY_CARD_GREEN_MARK = SEARCH_ENTITY_CARD_ITEM + '[{}]//*[contains(@class, "search-entity-card__mark")]' SEARCH_SWITCH_ALL = '//*[contains(@class, "pill-switch") and text()="All"]' SEARCH_SWITCH_ARTISTS = '//*[contains(@class, "pill-switch") and text()="Artists"]' SEARCH_SWITCH_TRACKS = '//*[contains(@class, "pill-switch") and text()="Tracks"]' BN_SEARCH_CLEAR = '//button[contains(@class, "search-input__clear-button")]'