i was trying to fix the TS issues, but found an intermittent bug where the script would fail
a few things happened: going to the wrong order page in magento. and a issue reading the document after clicking button
I am using a more reliable way of getting to correct order page(clicking on a tag rather than pulling out url href), and more reliable waiting (waiting for loading spinner to be hidden)
i was trying to fix the TS issues, but found an intermittent bug where the script would fail
a few things happened: going to the wrong order page in magento. and a issue reading the document after clicking button
I am using a more reliable way of getting to correct order page(clicking on a tag rather than pulling out url href), and more reliable waiting (waiting for loading spinner to be hidden)