CapSap / paddy-pronto-magento

0 stars 0 forks source link

bug- intermittant error. #8

Closed CapSap closed 8 months ago

CapSap commented 9 months ago

2 problems:

  1. script throws an error during selling, intermittently. Error: Error: failed to find element matching selector "div.screen-input" not sure what's going on here

  2. script is also throwing an error during entering receipt number into pronto (navigating to the wrong page) Error: script is on the wrong page! error somewhere when navigating to the order detail page for this error, page is not waiting everything that needs to happen after enter press

okay so how can i make sure that pupateer waits for results? could i wait for the content inside to === the page that we are searching for? could i wait for a function that is running in browser, until the innerHTML === search?

CapSap commented 9 months ago

for bug no 2: i think there is a slight pause between loader = hidden and the actual results being displayed

CapSap commented 8 months ago

so addressing bug 1. Error: Error: failed to find element matching selector "div.screen-input"

found the bug with headless=false!

sometimes the script clicks on this dropdown. image

and i think the reason is that there is some order no text as a option!

CapSap commented 8 months ago

got another interesting error: script clicked on the wrong screen and the page went to here image

how did we get here? to get to this screen script must be clicking on header bar, then clicking on the sort?

CapSap commented 8 months ago

pr #14 fixes this