Is there a way I could create a login module?

Hi All,

I’m new to new relic synthetics. The application I am in charge of testing requires login. Is there a way I could call a login script for my future scripts or do I have to repeatedly copy paste the login script?

You have use a scripted browser, where you can do the login in the script.
https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/scripting-monitors/write-scripted-browsers
and
https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/scripting-monitors/scripted-browser-examples

Yes, you have to copy and paste the script currently.

Add your vote to this post and you will find a workaround on that thread.

Thank you for pointing me in the right direction!