Building a visual auto-login bot
Imagine that you have an Agent or a bot that watches what you are doing and automatically logs you into websites whenever you click on a login screen. While browser plugins exist that can automatically log you in, they do so using hardcoded scripts that only work on the pre-programmed website's login URLs. But what if you had an Agent that only relied on the rendered web page – just like you do to perform a task – and worked even when the URL changes and when you are on a new website with no prior saved data? How cool would that be?! This recipe will help you develop a script that will train an Agent to log in on a web page! You will learn how to randomize, customize, and increase the generality of the Agent to get it to work on any login screen.
An example of randomizing and customizing the usernames and passwords for a task can be seen in the following image: