Welcome to the UiPath Community
Please use modern activities for these. Extract individually like this solution. This will give you 10 random names extracted from the site. you can change max iteration count of While as per your requirement.
Sample Code:
Workflow.xaml (18.5 KB)
Output File:
Output.xlsx (8.4 KB)
Thanks,
Ashok