Search text from section on screen


#1

Hi all

I’m looking to search text from one section of the screen - is there any way I can do this?

E.g.

If I wanted to search the “World markets” section of the screen for “5,216.28”.

The reason behind this is I want to look for numbers on a screen, but they could appear in a different column than the one I’m after.

Thanks


Select the whole page
#2

Hi @Short
As per my understanding, you can use Find Text activity to search the text on the screen within the particular frame or selection by using indicate on screen option and point out the respected section/frame in that activity.

Regards,
Ranjith.


#3

Hi,

use Set Clipping Region where you want to perform the search.

https://www.uipath.com/activities-guide/set-clipping-region


#4

This is probably a really stupid question but how do you work out the pixel offset? I’d worked out that it would be the clipping region but I have no idea how to set it around the section I want


#5

go to record wizard and start recording then hit F3 to choose “select region” and drag the mouse to get the region.
later u can see the offset in the clipping region like this.


#6

Hey

Thanks :slight_smile:

I’ve done that, got the region and added the ClippingRegion into a Text Exists activity, however the “No” message box pops up even though the figure is on the screen in the set clipping region

Any ideas?


I want to get a text from a particular area of PDF file. The text area has different text in different PDF file
#7

Please set condition as AmountonOnScreen=True


#8

It still isn’t working.

I’ve attached the window, highlighted the region (to make sure it’s looking at the right part), search the region for the text, changed the condition and the “No” message box is still appearing.

Can you see anything wrong with it or have an idea why it isn’t finding the text?

Thanks!


#9

can you change “wait for ready” property to complete.
Anyways can you give url where you wants to search that text or could you please attach workflow.


#10

worldmarket.xaml (9.8 KB)


How to detect text in a part of the screen
How to detect text in a part of the screen
#11

Hey

TextOnScreen.xaml (6.9 KB)

I can’t give the URL but https://www.google.com/finance?ei=2ghaWZnxK9SPUr_sjKgK#stockscreener is a smiliar one to the one I’m working with


#12

@vvaidya 's solution works fine. are you looking anything more than that.


#13

Yeah, to search a section of the screen, i.e. “100.00” could appear on the screen but if it’s not in the correct column, I don’t want it to be considered as found.

@vvaidya’s s.xaml stops working at “Find element”, I’m not sure if it’s because I’m using the community edition as the “Open browser” didn’t work until I deleted it and added the version from my editon


#14

Hi,

I’m trying to find if text exists in a notepad file and for this i have used text exists activity. Though the text is present in notepad file, it is giving not found message.


#15

Hi @Short

You can scrap the text by using the Data Scrapping method. After that it will return data in a data table, Now use For Each Row and If activity to match the required data.

Thanks.


#16

Hi @manjusha.chandana

Use Read Text File, This will return a string value.
After that use “Contains String” activity.

Thanks


#17

“Read text file” worked for me. Is there any way to find the position of the string that we are searching for.


#18

Hi @manjusha.chandana

Use “Index Of String activity”. It will return you Position of the String.