How can I extract the complete phone number from the website when it's displayed as '0096279552xxx' initially and only revealed after clicking on it? Any ideas?

Hello everyone,

I’m currently working on extracting data from a website, specifically the phone number. However, the phone number is initially displayed in a format like “0096279552xxx,” and only after clicking on it, the complete number is revealed. I’m seeking a solution to address this issue and extract the complete phone number. Any help or advice would be appreciated. Thank you!

FYI : I’m using UiPath studio : modern design

phoneNum

@M.Abd

Click on it and extract it…or check if it is showing the number in backend(for thisuse inspect element and check or use ui explorer to check)

cheers

1 Like

Hi @M.Abd

Use get text activity to get the mobile number and indicate on the element.
After indicates open the UI explorer and select the attribute which has the proper mobile number data. After this use get attribute activity and select the attribute in the output of get attribute create a variable which stores the exact data.

Hope it helps!!

2 Likes

My Robot Goal:

Problem Domain:

My robot’s goal is to assist users in finding real estate listings for apartments available for rent in a specific city. It will achieve this by taking input from the user, who will provide the city name. The robot will then scrape the relevant data from the web, including property prices, the number of bedrooms and bathrooms, and location details. The extracted data will be organized and exported into a Microsoft Excel spreadsheet for easy reference.

Specifically, the robot will collect the following information:

  • Location of the apartments
  • Number of bedrooms and bathrooms in each property
  • Rental prices of the apartments
  • Contact phone numbers for further inquiries.

With this process, users will be able to access comprehensive real estate data and make informed decisions when looking for apartments to rent in their desired city.

@M.Abd

We understand the goal now…where are you facing the issue?

Cheers

I want the phone number to be presented in the excel sheet like this 00967911111111" not in this way “009679111xxxx”

thanks

@M.Abd

For that only click it and then get the number …as it is revealed only when you click…or if it is available in any attribute check and use get attribute

Cheers

Hey @M.Abd ,

Here’s a quick solution using Get Full Text:

Steps:

  1. Open the Website:

    • Use Use Application/Browser to navigate to the website.
  2. Click to Reveal Number:

    • Add a Click activity on the partially hidden number (e.g., “0096279552xxx”).
  3. Extract Full Number:

    • Use Get Full Text to capture the fully revealed phone number.
    • Example selector:
      <webctrl tag='SPAN' class='complete-phone-number' />
      
    • Save the output to a variable (e.g., FullPhoneNumber).
  4. Log the Result (Optional):

    • Use Log Message: "Extracted Phone Number: " + FullPhoneNumber

That’s it! This should get you the complete phone number. :blush:

Best,
Chaitanya