In the Authentication Tester change the “Auth Method” to “Client Script” and then click on the “Record…” button.
ZAP will launch your chosen browser and open the Login URL.
Login to your application in the browser and then close it.
ZAP will have created and selected a new “Client Script” which it will use to authenticate when you run the next test.