switched to new way :)
This commit is contained in:
parent
b03a2a25f1
commit
f22d182c8f
30 changed files with 0 additions and 0 deletions
30
src-old/trade/selectors.ts
Normal file
30
src-old/trade/selectors.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// CSS selectors for the POE2 trade website (pathofexile.com/trade2)
|
||||
// These need to be verified against the live site and updated if the site changes.
|
||||
|
||||
export const SELECTORS = {
|
||||
// Live search activation button
|
||||
liveSearchButton: 'button.livesearch-btn, button:has-text("Activate Live Search")',
|
||||
|
||||
// Individual listing rows
|
||||
listingRow: '.resultset .row, [class*="result"]',
|
||||
|
||||
// Listing by item ID
|
||||
listingById: (id: string) => `[data-id="${id}"]`,
|
||||
|
||||
// "Travel to Hideout" / "Visit Hideout" button on a listing
|
||||
travelToHideoutButton:
|
||||
'button:has-text("Travel to Hideout"), button:has-text("Visit Hideout"), a:has-text("Travel to Hideout"), [class*="hideout"]',
|
||||
|
||||
// Whisper / copy button on a listing
|
||||
whisperButton:
|
||||
'.whisper-btn, button[class*="whisper"], [data-tooltip="Whisper"], button:has-text("Whisper")',
|
||||
|
||||
// "Are you sure?" confirmation dialog
|
||||
confirmDialog: '[class*="modal"], [class*="dialog"], [class*="confirm"]',
|
||||
confirmYesButton:
|
||||
'button:has-text("Yes"), button:has-text("Confirm"), button:has-text("OK"), button:has-text("Accept")',
|
||||
confirmNoButton: 'button:has-text("No"), button:has-text("Cancel"), button:has-text("Decline")',
|
||||
|
||||
// Search results container
|
||||
resultsContainer: '.resultset, [class*="results"]',
|
||||
} as const;
|
||||
Loading…
Add table
Add a link
Reference in a new issue