Scraping of size and colors in a wear shop ecommerce

This is another question for forum expert if they will be so kind to answer :slight_smile:

I’m new on UiPath ad I followed instruction on Marcelo Cruz YouTube video named " UiPath - Web Scraping (Full Tutorial)"

Well… I must also solve issue for “next button” but I want to ask something else:

After I have created Extract Table Data , I used activity “For each Row in Data Table” to access to every single page product;

In page product with activity Get Text I got characteristics of product and I assigned it with Assign activity in a variable;

At this point there are other data I need in product page but I don’t know how to extract them;

Here there are what I need:

RED: Description of the product BUT it’s possible that it’s not always present in every products; I tried with another simple Get Text but I had error;

GREEN: Size of product; it could be present or not; when present it’s probably that contain variable elements;
for example:
S, M, L, XL, XXL, 2XL, 3XL or
SX, S, M, L, XL, XXL, 2XL, 3XL , 4XL, 5XL or
38, 40, 42, 44, 46, 48, 50, 52 or
40, 42, 44, 46, 48, 50, 52, 54, 56 or
I, II, III, IV, V
etc.

BLU: Colors of product that obviously colud be various in number and type;

Have you maybe any suggest?

Here it is my project file:

Try using get attribute activity instead of get text

1 Like

Hi @famastyle

For RED: Use element exists or check app state activity, if exists then use get text to get the text.

For GREEN and BLUE: Use get attribute activity to get all the details of the product present in the dropdown.

Hope it helps.

1 Like

Really thanks @B_H_Akshatha_Pai

I’m trying…
a couple of question:

  • What kind of Attribute I need?
  • “Giacca Daniel” Obviously is not ever the name or the text I need; I know I can change Title of activity but I want to be sure that I understand properly what YOu suggested

Thanks in advance

Hi @famastyle

Try with Innertext

image

1 Like

Check the dropdown present over there and see if the text that you need is there or not

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.