How to run my script to copy newly generated code when its run and insert it in next step

Hi guys, so im writing web scripts, i have a authorisation code that changes every time the script is run, and i need the same code inserted in the authorsation box before its submitted, please could anyone advise me on code to use or how i can do this

You can’t do it. When you execute a script, you can’t insert a new code during execution. It can only be inserted and new code will take effects on next run

Do you perhaps have an example for me?

Ah sorry what I mean is you can’t insert code during execution in your test script.