Hello. I have an instance of Windows Admin Center running on a server of mine. I created a workflow using UI.Vision which performs the following steps in an infinite “while” loop:
- Use verifytitle to check the title of the page on the current tab. Compares it to the string “Windows Admin Center,” as that is the title the browser returns when Windows admin center is loaded.
- If the previous step returns an error, open the url that will launch windows admin center and wait for page to load
- refresh the web page
- Pause for 10 seconds
- repeat loop
Below is the json code for the workflow:
{
"Name": "go",
"CreationDate": "2025-1-26",
"Commands": [
{
"Command": "store",
"Target": "true",
"Value": "!errorignore",
"Description": ""
},
{
"Command": "while",
"Target": "true",
"Value": "",
"Description": ""
},
{
"Command": "assertTitle",
"Target": "Windows Admin Center",
"Value": "",
"Description": ""
},
{
"Command": "if",
"Target": "!${!statusOK}",
"Value": "",
"Description": ""
},
{
"Command": "open",
"Target": "https://server:8080",
"Value": "",
"Description": ""
},
{
"Command": "waitForPageToLoad",
"Target": "3000",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "bringBrowserToForeground",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_F5}",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "10000",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
}
]
}
The problem that I am running into is with the title comparison. For some reason, the workflow always makes the determination that the title of the web page is not Windows admin center, even when the tab clearly has Windows admin center loaded. I determined the web page’s title by using a bookmarklet with the following code:
javascript:(() => {alert(document.title)})();
What am I doing wrong here? Why is the workflow not correctly reading the web site title?