Uipath data scraping error - cannot find the UI Element corresponding to this selector

别等时光非礼了梦想. 提交于 2021-02-10 14:44:54

问题


I use UiPath and data scraping activity. First open the browser direct to the e-commerce site and search the product. Everything is fine, until after the product was searched and results were shown, the output gives the following error message:

Cannot find the UI Element corresponding to this selector

I deleted the data scraping activity from my project and create a new and exactly same data scraping activity again and it works without error. However, when I close the UiPath project and open it again, the error start showing again when I run it. Why does that happen?


回答1:


The obvious reason is that the selector is changing every time you visit it. So first you need to analyze your issue:

  • compare the exact error messages
  • those will differ by the refer_pv_id
  • this id is generated on every new visit obviously
  • so every time you visit the page you are getting a new one that is not matching with the old one

To fix this you need to change your selector and using wildcards. So for your example this will be:

...home&refer_pv_id=*' title=...



来源:https://stackoverflow.com/questions/61572076/uipath-data-scraping-error-cannot-find-the-ui-element-corresponding-to-this-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!