Clicking "work-items" fails

hi,
i am having a strange problem.

I’m trying to click the button “work-items” on “Acme-System 1” https://www.acme-test.com/ but it fails every time.
(Browser is open, site is shown, logged in, but if i start my simple click sequence it fails).

My Click-Selector for this button is:
…webctrl aaname=’ Work Items’ parentid=‘dashmenu’ tag=‘BUTTON’ /…
in an “attach browser”-container
…html app=‘firefox.exe’ title=‘ACME System 1 - Dashboard’ /…

i tried different variations but the only workaround to get the button is through “OCR”. But i think there must be a better solution :grinning:

Exception

WorkItemAppears has thrown an exception

Source: Click ‘BUTTON’

Message: Cannot find the UI element corresponding to this selector:

Exception Type: SelectorNotFoundException

UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hello @markus, I was trying this too and as far as I can remember, there is some other characters before the “Work Items”.
Does this selector work on yours?

<webctrl aaname='*Work Items' parentid='dashmenu' tag='BUTTON' />

1 Like

thank you, it’s working now :smile:

That’s nice :smile: