How to download pictures one by one in ERP system when there is a list images? ??I tried “Cick”, “Click OCR Text”,“Click Image” and “Screen Scraping” activities, but all failed. Error message poping up is that Uipath can’t find the UI element “” input.
Hi there @lovelyava,
Can you extract the table, in the format:
----Blank—|----File#-----|----File Name----
--------------------1---------SAM_3674.JPG
--------------------2---------SAM_3646.JPG
Then, you should be able to simply iterate through that DataTable, utilising Click Text, or a Click with a dynamic selector.
For Each row in dtFileAttachments
Click Text - Text = row.Item("File Name").ToString
OR
Click - Selector = "XYZ aaname = '" & row.Item("File Name").ToString & "'"
Next
Alternatively, depending on the website structure, you may be able to simply check if a row exists, via the row number.
For instance:
Assign - intRowCounter = 1
Element Exists - Selector = "XYZ tableRow = '" & intRowCounter.ToString & "'" Output = boolAttachmentExists
While boolAttachmentExists
Do Stuff
Assign - intRowCounter = intRowCounter + 1
Element Exists - Selector = "XYZ tableRow = '" & intRowCounter.ToString & "'" Output = boolAttachmentExists
Loop
Thanks in advance,
Josh
Hi Davey,
thank you very much for answering my question.
another question:
What if there are many files in the attachment ( such as excel file, email file, etc) and i only need download JPG images? Is there any way to distinguish JPG images from other files?