diff --git a/src/engines/bing.js b/src/engines/bing.js index f5bf691..3662b79 100644 --- a/src/engines/bing.js +++ b/src/engines/bing.js @@ -5,7 +5,7 @@ const engine = 'bing'; async function search({session, search, doc, storageIds}) { const button = await findNode( - 'ol#b_results li.b_algo:first-of-type div.b_attribution a.trgr_icon', + 'ol#b_results li.b_algo div.b_attribution a.trgr_icon', {throwError: false} ); @@ -13,7 +13,7 @@ async function search({session, search, doc, storageIds}) { button.click(); const node = await findNode( - 'ol#b_results li.b_algo:first-of-type div.b_attribution a[href*="cc.bingj.com/cache"]', + 'ol#b_results li.b_algo div.b_attribution a[href*="cc.bingj.com/cache"]', {throwError: false, timeout: 1000} ); diff --git a/src/engines/yahoo.js b/src/engines/yahoo.js index 23cce9a..aaddef0 100644 --- a/src/engines/yahoo.js +++ b/src/engines/yahoo.js @@ -6,7 +6,7 @@ const engine = 'yahoo'; async function search({session, search, doc, storageIds}) { const button = await findNode( - '#results li:first-of-type div.options-toggle span.chevron-down', + '#results li div.options-toggle span.chevron-down', {throwError: false} ); @@ -14,7 +14,7 @@ async function search({session, search, doc, storageIds}) { button.click(); const node = await findNode( - '#results li:first-of-type a[href*="cc.bingj.com/cache"], #results li:first-of-type a[href*="cc.bingj.com%2fcache"]', + '#results li a[href*="cc.bingj.com/cache"], #results li a[href*="cc.bingj.com%2fcache"]', {throwError: false, timeout: 1000} ); diff --git a/src/engines/yandex.js b/src/engines/yandex.js index a0ae392..e9306b4 100644 --- a/src/engines/yandex.js +++ b/src/engines/yandex.js @@ -120,6 +120,7 @@ async function search({session, search, doc, storageIds}) { throwError: false, timeout: 30000 }); + await sleep(1000); await sendReceipt(storageIds);