How do I get no of tabs opened in chrome

Can anyone help me to get no of opened tabs in chrome

Hi @Sankaraveni_M
check the below link

Step1: The opened tabs in Chrome is shown below:
Drag and Drop find children activity from activities panel to designer panel as shown below:
image
image

  • Filter – Provide the tag that is shown in the image above.
  • Scope – Select the find top levels in that property as shown above.
  • Children – It will provide us the selectors of all the opened tabs as this is an IEnumerable of UiElement.

Step3: Drag and Drop For each and Write Line activity from activities panel to designer panel as shown below:
image
image
TypeArgument -As the output from find children activity is IEnumerable of UiElement the type argument should be UiElement as shown above.
image
Step4: Drag and Drop Get attribute and write line activity from activities panel to designer panel as shown below:
image
image

  • Attribute – Select the title in that attribute property.
  • Element – As our item is a UiElement variable type provide that in this property.
  • Result – This will provide the title of the tab in the IE.

The output after this final step is shown below:
image

1 Like

Thanks for the detailed answer, But I need count (eg. 5) which no of opened tab counts

@Sankaraveni_M

Please check this.I hope this is what you need

Cheers