Use timer, that might work

Can u tell me how to make an code to login on a website basic authentication popup?