I Want to count amount of Bread Crumbs in a website and take decisions

I have an Exce thatl contains URLs of product pages and each page has 1 to 3 breadcrumbs.

I Need help to count how many breadcrumbs are per page.

  • If there are 3 breadcrumbs, click on the 3rd breadcrumb.
  • If there are 2 breadcrmbs, click on the 2nd breadcrumb.
  • If there is only 1 breadcrumb, log “Only One”.

Any Ideas?

@Favarelaa

can you share some more info

you can use for each ui element or extract to get the details and then decide to click or not

cheers

What other details do you need?
Can you please be more specific in the proces you propose?

@Favarelaa

Are all the urls of same website? Or of differnet? If different it migh tnot work as aelectors will be completely different

If same then you can follow as below

  1. Use for eqch ui element …first time use a counter and do a count or use a extract datatable and extract all the required values which are similar like the bread crumpts you need
  2. Then if using for each as you hve counter if counter is 1,give messge,if two click on second round if 3 click on 3 rd round of iteration

Cheers

Hi @Favarelaa

Could you provide a screenshot about the way that breadcrumbs are displaying

Hi @Favarelaa ,

Use Get text and choose selector which contains the whole breadcrumbs like below and the split the string by giving your delimetere like here is “/” , split gives you an array and take the count of array.

image