Initial commit: POE2 automated trade bot
Monitors pathofexile.com/trade2 for new listings, travels to seller hideouts, buys items from public stash tabs, and stores them. Includes persistent C# OCR daemon for fast screen capture + Windows native OCR, web dashboard for managing trade links and settings, and full game automation via Win32 SendInput. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
41d174195e
28 changed files with 6449 additions and 0 deletions
30
src/trade/selectors.ts
Normal file
30
src/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