How to extract the Ui label from the web page and need to create an excel for all the labels from the UI need an work flow

one of many options could be using find children and filtering for the label elements
then process the found label elements within a for each activity