Skip to content

Commit

Permalink
Merge pull request #6 from matterway/fix/handle-german-website
Browse files Browse the repository at this point in the history
add german selectors
  • Loading branch information
aladoui authored Jun 28, 2024
2 parents f286ff0 + 00e984a commit 025cc48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/shared/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export const SELECTORS = {
searchButton: 'input[id*="search"][type="submit"]',
priceInput: 'input[id*="upper-bound"][type="range"]',
priceInputHidden: "input[name*='high-price'][type='hidden']",
priceButton: 'input[aria-label*="Go"][type="submit"]',
priceButton:
'input[aria-label*="Go"][type="submit"], input[aria-label*="Start – Preisspanne einreichen"][type="submit"]',
xResults:
"//*[contains(text(), 'Results') and not(.//*[contains(text(), 'Results')])]",
"//*[contains(text(), 'Results') and not(.//*[contains(text(), 'Results')])] | //*[contains(text(), 'Ergebnissen') and not(.//*[contains(text(), 'Ergebnissen')])]",
xNoResults:
"//*[contains(text(), 'No results') and not(.//*[contains(text(), 'No results')])]",
"//*[contains(text(), 'No results') and not(.//*[contains(text(), 'No results')])] | //*[contains(text(), 'Keine Ergebnisse') and not(.//*[contains(text(), 'Keine Ergebnisse')])]",
},
ebay: {
searchInput: 'input[aria-label*="Search"]',
Expand Down

0 comments on commit 025cc48

Please sign in to comment.