You need to create a compiled version of the script, specifying your username and password when exporting. Actually, this is what the premium version is for.
@stephenperry18 You need to attach to something else, which is not changing.
For example, if there is only one frame on page, or index of frame is not changing you can use following expression: