Windows.Get Element failed locating 1 item(s)

Within an application called “The Mortgage Office”, the Windows.GetElement is able to get access and click into the following button:

“[
{
“filename”: “%ProgramFiles(x86)%\Applied Business Software\The Mortgage Office\The Mortgage Office.exe”,
“processname”: “The Mortgage Office”,
“arguments”: “”,
“Selector”: “Windows”,
“search_descendants”: “True”,
“mouse_over_search”: “False”
},
{
“ClassName”: “WindowsForms10.Window.8.app.0.###a##_r8_ad1”,
“Name”: “The Mortgage Office™ - Company Name”,
“ControlType”: “Window”,
“AutomationId”: “frmMDI”,
“FrameworkId”: “WinForm”
},
{
“Name”: “Loan\r\nServicing”,
“ControlType”: “Button”
}
]”

This buttons is kind of on the outside of the screen, and within the application is another screen that pops up. Within this screen I cannot get access or click into the following button as I get a "Windows Get Element failed locating 1 item:
“[
{
“filename”: “%ProgramFiles(x86)%\Applied Business Software\The Mortgage Office\The Mortgage Office.exe”,
“processname”: “The Mortgage Office”,
“arguments”: null,
“Selector”: “Windows”,
“search_descendants”: “True”,
“mouse_over_search”: “False”
},
{
“ClassName”: “WindowsForms10.Window.8.app.0.###a##_r8_ad1”,
“Name”: “The Mortgage Office™ - Company Name - [Loan Servicing]”,
“ControlType”: “Window”,
“AutomationId”: “frmMDI”,
“FrameworkId”: “WinForm”
},
{
“Name”: “All Loans”,
“ControlType”: “TreeItem”,
“FrameworkId”: “WinForm”
}
]”

When I go through the selector it highlights the selected button and picks up on it. Just seems like there’s issue detecting when running the flow.

It looks like this is somewhat related to this post by @Verone42 that did not have any resolution:

https://discourse.openiap.io/t/seeking-workaround-for-missing-selectors-in-native-windows-application/540/5

If windows get element does not work out for this situation and If the element does not change pixel positions often. You can use Autohotkey script to move the mouse to a specific location and click the mouse
Invoke Code- Autohotkey script
; Get the current mouse position
MouseGetPos, mouseX, mouseY

; Show a message box with the mouse coordinates
MsgBox, The mouse is at X: %mouseX% Y: %mouseY%

return

First use autohotkey to get the mouse position of the element you want clicked

Write down the coordinates and create the invoke script to move the mouse to that position and click the mouse
image
You can left click or right click and you can use openRPA variables or hard code the values where you want to click

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.