I'm trying to run a script that clicks on two seperate buttons/Ids on the same website.
I want to run first
document.getElementById("add-to-cart").click()
which will redirect me to the cart/basket page of an online store
once I'm there, i want to run
document.getElementById("checkout").click()
which will take me to paypal.
How do I incorporate these two together?
Please help when you can, Thanks