Extract text with spaces from a web page and write it back to the web page

So, the task which i had to do was to extract text from Monkeytype website and write the text back to the same website.
So, i have extracted text from the website using get text activity but i am unable to extract the spaces between those texts.

Also, how can I write back into the website?
I am new to RPA.

here is my project.
Main.xaml (10.2 KB)
project.json (1.6 KB)

I appreciate your help beforehand

Hi @Vikas_M

The spaces between the texts are typically represented by HTML tags such as <br> or CSS styles.

Instead of using the “Get Text” activity, you can try using the “Get Full Text” activity in your RPA tool. This activity captures the complete text, including the spaces and formatting, as it appears on the website. It allows you to extract the entire content, including the spaces, line breaks, and any other formatting elements.

Use an activity like “Type Into” or “Set Text” to input the extracted text into the desired element. These activities simulate keyboard input and can be used to write text into input fields or editable areas on the website.


Hey @Nitya1 ,
I appreciate your concern , the suggested solution didn’t work for me, am getting the same output(text without spaces).

I thank You for your reply!

Hi @Vikas_M

Try using “Get OCR Text” Activity and under OCR engine use “UiPath Screen OCR”. This will work. I am sharing the process of the file with changes for your reference. Please do check. Hope it helps!!

Main.xaml (21.0 KB)


Hey @Parvathy ,

I tried your solution but the OCR method is not reliable, it detects some texts and some alphabets are ignored by OCR

I thank you for taking an interest on this and teaching me a new approach to get the text

Hi @Vikas_M

In the “Get OCR text” activity instead of using “UiPath Screen OCR” engine try using “Omni Page OCR” engine by downloading the package “UiPath.OmniPage.Activities”. I hope you would achieve the output you want. Check the process for your reference.

Main.xaml (23.0 KB)

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.