UiPath -Error {“message”:\"Click Text 'SAPTreeList': Cannot find the UI element corresponding to this selector: <wnd ctrlid='90279688' />

冷暖自知 提交于 2019-12-01 16:48:28

As the error message

Cannot find the UI element corresponding to this selector: <wnd ctrlid='90279688' /><wnd ctrlid='100' title='SAP&apos;s Advanced Treelist' />”

Says UI path cannot find your element.

I can think of 2 possible causes for this problem.

  1. Selector Issues for which you can do the following

    • Use partial selectors instead of full selectors
    • Use wildcards for dynamic parts of your selectors (* for replacing any number of characters, ? for replacing exactly 1 character)
  2. Something happens to your SAP application / application closes for some reason for which you can try the following

    • You should consider adding some error handling logic to recover from these errors instead of crashing and terminating the whole workflow.For this you can use Try Catch activity of UI path https://activities.uipath.com/docs/try-catch. You can recover from this error simply by closing and reopening your SAP application. You can add a workflow in catch block to do this action if you decide to go with error handling.

Summary of the points discussed in comments:

  • Use highlight feature of the UI path to help with debugging of the selectors.
  • Desktop recording of UI path generates partial selectors where as basic recording generates full selectors.
  • Anchor base activity of UI path can be used when a reliable selector is not available. https://activities.uipath.com/docs/anchor-base
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!