This thread is trying to answer question "The thread is trying to answer the question of how to fix a script that is not saving all files as it should."
The entire code is on github at https://github.com/iamtheyammer/fetch-ford-service-manuals (it will be tricky to test as you'll need my Ford login). But essentially, depending on vehicle, it will download part of the manual, all of the manual, none of the wiring diagrams, or all of the wiring diagrams).
did you isolate which vehicle has or has not which document ? (maybe documents are not the same depending on vehicle (naming, existing, availability, ...) do you have errors (code or network) when document are missing ? or is it silent (just ford not sending document without error ?) is it constant ? or not ? -> network issue (your or ford side) is it not depending on the number of request made before ? (maybe Akamai protection ?)
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email email@example.com.