Executing a snippet when a webpage loads

Hi everyone
I am new to TB.

Is it possible to execute a snippet when a webpage loads?
I am asking for the use case below.

I want the page to load, then i log in, i check my orders then i sign out.
Here is an exampe:

  1. I visit the orders page via: https://account.johnlewis.com/orders
  2. however i manually have to click on the email field so i can execute the snippet. Can the snippet automaticlaly start when the page loads?
  3. even if it doesn't, i dont mind clicking on the email field and start the snippet that way, so my email and password are entered. and i go to the orders page.
  4. I then want to check the progress of my order. i just need to have a quick glace. and then i want to signout. There is a signout link at the top, but auto pilot wont recognise it. i can also sign out via a link (https://www.johnlewis.com/sign-out)
  5. as a bonous, if i can then login to another account immedaltly after that. which is why i was asking about the signing out.
    so basically, sign in, go to orders page, wait 2 seconds, sign out, then sign in to second account as before.

Thanks very much in advance for your help.

Hi @Mohamed_Sattar, welcome to the forum! :slight_smile:

Though there's no way to automatically execute a snippet when a page loads, maybe we can have a quick call to find an alternative way to automate that scenario together. I've sent you a direct message.