Giter Site home page Giter Site logo

Comments (6)

 avatar commented on August 29, 2024 1

@mark-thompson Here is the dump file source_dump_1586908512545.html for this use case. I had to change the extension of the file to make github happy. Thanks.

source_dump_1586908512545.txt

from whole-foods-deliverance.

b3nw avatar b3nw commented on August 29, 2024 1

Yup attached.

source_dump_1586741431025.txt

from whole-foods-deliverance.

b3nw avatar b3nw commented on August 29, 2024

Keep missing slots due to the handling out of stock items, would be good to add a flag to ignore and continue.

INFO:__main__:Checking for available slots
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/element {"using": "css selector", "value": ".ufss-slotselect-container"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "POST /session/634e69c8b35495cc72a56fdfd6b9939b/element HTTP/1.1" 404 1061
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
ERROR:utils:Timed out waiting for target element: ('class name', 'ufss-slotselect-container')
INFO:utils:Dumping page source to: source_dump_1586741431025.html
DEBUG:selenium.webdriver.remote.remote_connection:GET http://127.0.0.1:59393/session/634e69c8b35495cc72a56fdfd6b9939b/source {}
DEBUG:urllib3.connectionpool:http://127.0.0.1:59393 "GET /session/634e69c8b35495cc72a56fdfd6b9939b/source HTTP/1.1" 200 107899
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
Traceback (most recent call last):
  File ".\run.py", line 178, in <module>
    main_loop(driver, args)
  File ".\run.py", line 135, in main_loop
    slots = slots_available(driver, slot_prefs)
  File ".\run.py", line 73, in slots_available
    slots = get_slots(driver)
  File ".\run.py", line 31, in get_slots
    slot_container = get_element(driver, config.Locators.SLOT_CONTAINER)
  File "C:\Users\b3nw\Documents\whole-foods\whole-foods-deliverance\utils.py", line 55, in get_element
    WebDriverWait(driver, timeout).until(
  File "C:\Users\b3nw\Documents\whole-foods\whole-foods-deliverance\env\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@b3nw Agreed. Could you upload the full or partial HTML from source_dump_1586741431025.html somewhere (redact any personal information, of course) so I can look into how best to achieve this?
I haven't been able to get my hands on the source for that alert page

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@b3ll0v1c @b3nw Try pulling the most recent version and run with the ignore-oos option. This worked for me in testing, but let me know how it goes

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

Closing this as I encountered the OOS alert 'in the wild' and it was handled

from whole-foods-deliverance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.