Error during scraping

Hi to eveyone,

As I wrote in other posts, I’m rookie and I’ve been using Studio Path since 15 days ago… without coding experience (something in python during my universities studies)

So please be patient to me and pls explain my mistakes step by step;

Thanks to the help of another user her I completed my program… but during test I had this error:

23-08-10 Giblors 04.zip (3.0 MB)

Here it is my project;

Thanks in advance for all your help and patience

God bless

Hi @famastyle

You have indicated an element in the Click activity. When bot is executing the Ui element has to be on the screen, if the target element is not appear on the screen then Could not find the user-interface element error throws by that activity.

Do Debug the process and find which click activity is throwing the error. Then check the element is appearing or not in the screen.

Hope it helps!!

@famastyle

Check the URl you are indicating on the correct application or not
Change the selector of Click to strict selector so that the applicatiin identifies the target element

Hello @famastyle

  1. Read Error Message: Understand the error message to identify the issue.
  2. Check Activity Properties: Verify activity properties are correctly set.
  3. Inspect Variables: Ensure variable values are as expected.
  4. Review Logic: Validate the sequence of activities.
  5. Verify File Paths: Confirm file paths are accurate.
  6. Debugging: Use breakpoints to find the error source.
  7. Try-Catch: Wrap critical parts with Try-Catch for graceful handling.
  8. Community: Seek help on UiPath forum.
  9. Resources: Consult documentation and resources.

Thanks & Cheers!!!

Hi @mkankatala and thank so much…
the element is present on screen but how rlgandu said maybe is better to use another kind of seelctor

I saw after hours to study UI path studio that I have problems with selectors :smiley:

Could you please explain better @rlgandu ?
Instead of click have I to uese another kind of selector?

I have explained about the error that you got.

If you are clicking on element if the text in that element is changing every time.
If yes you have to modify the selectors.
When you are indicating the element check the strict selectors and uncheck the fuzzy selector and image.

Open the Strict selectors of that activity and open in Ui explorer uncheck the attributes which have the text in the element. Max of text is stored in the aaname or innertext attribute uncheck both the attributes and validate.

I hope it works when we done in this way. @famastyle

1 Like

Thank so much!
It works… maybe…
I tried to run the whole program and I had no errors but unfortunately the result is not what I hoped. There are many double products and some missing ones.
At this point I ask if there is someone who can correct my program to fulfillment… evidently I am not able to.

1 Like

If you give us brief explanation about the process that you are automating then it is better to understand and help to give the inputs. @famastyle

1 Like

Thank so much for your answer :heart:

I’ll try to explain my GOAL @mkankatala

My goal is to get an Excel file that contains all the data of every single product in the shop.

I tried following a Marcelo Cruz tutorial on youtube and assembled the program in UI Path Studio. The first problem I had to face was to find a way to make the program change the page because even identifying the next page button this still didn’t work. A user here on the forum created a while loop for me to switch pages.

Once the URLs of the single products have been obtained, the while loop enters each of them and obtains all the data present in each single sheet. The main difficulty was to click on the image of the product sheet and save the URL of this image.

At the moment the program seems to work but unfortunately the excel file obtained does not contain the data I need so I probably made some logical error somewhere.

edit:
now I tried again and alla seems work properly…

edit 2:
NO I had new errors…

I tried to edit in UI Explorer the selector of pages…

image

image

it has been used strict selector and these are the values:

<html app='msedge.exe' title='giblors.com' /> 
<webctrl css-selector='body&gt;div&gt;section&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;nav&gt;ul&gt;li&gt;a&gt;i' idx='4' parentid='b' tag='I' />

if somebody has any ideas…

Hi @famastyle

During indicating the element disable the computer vision.
image

Computer vision is alreay disabled…

Actually… I also have this error

image
Change the waitforready property to complete in find children activity.
@famastyle

1 Like