From 6fd023e81e0c54e8fb53b45817b63cb49b8a37ce Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Thu, 3 Dec 2020 11:55:07 -0500 Subject: [PATCH] fix(amazon): price and cart buttons Resolves #1125 Signed-off-by: Jef LeCompte --- src/store/model/amazon.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/store/model/amazon.ts b/src/store/model/amazon.ts index c76a9a2..a36ca51 100644 --- a/src/store/model/amazon.ts +++ b/src/store/model/amazon.ts @@ -7,12 +7,18 @@ export const Amazon: Store = { container: 'body', text: ['enter the characters you see below'] }, - inStock: { - container: '#desktop_buybox', - text: ['add to cart'] - }, + inStock: [ + { + container: '#add-to-cart-button', + text: ['add to cart'] + }, + { + container: '#buy-now-button', + text: ['buy now'] + } + ], maxPrice: { - container: 'span[class*="PriceString"]' + container: '#price_inside_buybox' } }, links: [