How to automate browser login dialogs?

Hello, I assume you refer to authentication popups like the one in the screenshot below. These login popups are a common security mechanism on websites, often requiring authentication through a username and password:

Ui.Vision does not have - and does not need! - a ONLOGIN command like iMacros. Instead, you can use the real user simulation XTYPE command to fill this dialog.

Login macro running:

Demo macro source code:

{
  "Name": "login rpa",
  "CreationDate": "2025-10-14",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://testpages.eviltester.com/styled/auth/basic-auth-test.html",
      "Value": "",
      "Description": "External website, not related to Ui.Vision"
    },
    {
      "Command": "Click",
      "Target": "linkText=Basic Auth Protected Page",
      "Value": "",
      "Description": "open popup"
    },
    {
      "Command": "XType",
      "Target": "authorized",
      "Value": "",
      "Description": "enter user name"
    },
    {
      "Command": "XType",
      "Target": "${KEY_TAB}",
      "Value": "",
      "Description": "Use TAB to move to password field"
    },
    {
      "Command": "XType",
      "Target": "password001",
      "Value": "",
      "Description": "enter password"
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "Login done!",
      "Value": "green",
      "Description": "Authentication successful"
    }
  ]
}
2 Likes