Can anyone help me to get no of opened tabs in chrome
Step1: The opened tabs in Chrome is shown below:
Drag and Drop find children activity from activities panel to designer panel as shown below:
- 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:
TypeArgument -As the output from find children activity is IEnumerable of UiElement the type argument should be UiElement as shown above.
Step4: Drag and Drop Get attribute and write line activity from activities panel to designer panel as shown below:
- 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:
1 Like
Thanks for the detailed answer, But I need count (eg. 5) which no of opened tab counts