Looping on URLs from Excel file using UiPath

随声附和 提交于 2019-12-20 06:28:57

问题


I have tried several ways but somehow they dont look clean;

  1. I have a URL file in Excel format (400+ urls in a column)
  2. I want UiPath to read from that file and browse these URLs one by one

I tried with making "Navigate to" read from a variable that reads from Excel but it just gets messy and does not work.

anyone can suggest some easy way to do it?


回答1:


Please elaborate what you want to do.

As per my understanding, you have a Excel file with a column containing the URLs and you want to visit each one - in this case:

  1. Take one excel application scope activity Give the path of your excel file...Create one DataTable object.
  2. Use a For Each Row activity, providing your DataTable object.
  3. Within the loop, use an Assign activity, and set url=row.Item("urlColumnname").ToString()
  4. Use an Navigate To activiy to visit each URL.



回答2:


Make sure your "Navigate to" activity is surrounded with an "Open Browser" or "Attach Browser" activity.

Additional tips will be:

  • Use IE, while chrome and firefox plugins are available IE is natively supported.
  • Consider adding a "delay" activity after each "Navigate", this is specially when your network is slow or you have low latency causing the robot to go faster than the browser itself and therefore, causing problems reading your selectors.


来源:https://stackoverflow.com/questions/51461100/looping-on-urls-from-excel-file-using-uipath

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