|
|
@ -154,11 +154,15 @@ function isItemInStock() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
elementText = "";
|
|
|
|
elementText = "";
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (element.tagName.toLowerCase() === "input") {
|
|
|
|
if (element.tagName.toLowerCase() === "input") {
|
|
|
|
elementText = element.value.toLowerCase().trim();
|
|
|
|
elementText = element.value.toLowerCase().trim();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
elementText = getElementBaseText(element);
|
|
|
|
elementText = getElementBaseText(element);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
console.warn('stock-not-in-stock.js scraper - handling element for gettext failed', e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (elementText.length) {
|
|
|
|
if (elementText.length) {
|
|
|
|
// try which ones could mean its in stock
|
|
|
|
// try which ones could mean its in stock
|
|
|
|