You can't. That's the purpose of CAPTCHA. That a robot or automated process is made unable to login. In real projects, even if your application would have such feature at login, in the test environment you would have it disabled for automation testing purposes.