I am trying to write a script to use a script to open a website and click a button.
I can actually use window.location.href = '...';
or $("#id").click()
to do that separately. But if I run the first one, the second one wouldn't run because we would lose it.
I just want to know is there any way to run the code one by one?
update: No I can't control it. It is a public website.