Delay in shortcut for captive Wifi login?

Is it possible to have a shortcut recognize a delay, and then login to a captive wifi that requires a username and password?

My work’s wifi is open but captive, and the username and password are always the same, but it times out between when I leave and come back the next day.

Wondering if there’s a way to have a shortcut connect, wait X amount of time for the login to pop, then input the name and password.