How to check whether the text is there in website?

Hi All,

I have a question that how to check whether the text is there in the website?

So if there’s a solution please let me know it as soon as possible.

2 Likes

use Element Exist Activity and indicate on that text and based on that use if condition!

1 Like

Hi
We got many options to find this buddy

—ELEMENT EXISTS if the text can be searched as a individual element
Or
—IMAGE EXISTS air the text can be searched as a image
OR

if we want to find the selector or uielement of a text then we can use FIND TEXT POSITION activity

Cheers @SOURAV_KUMAR_DAS

3 Likes

Hi Sir,

If I use Find Text Position. if I got the element what type of output it would generate Sir?

Hi @SOURAV_KUMAR_DAS

Do you have specific text to check on .

cheers :smiley:

Happy learnng :smiley:

3 Likes

UiPath.Core.UiElement
@SOURAV_KUMAR_DAS

2 Likes

Hi Sir,

Yes Sir I have a Specific Text.

1 Like

Whether this UiElement is able validate for Condition purpose Sir?

1 Like

of course
then in IF condition
out_uielement.Attributes.Count>0

but it was suggested if we want the position itself
if we just want to find whether its there ornot we can use either ELEMENT EXISTS or IMAGE EXISTS

Cheers @SOURAV_KUMAR_DAS

2 Likes

Hi @SOURAV_KUMAR_DAS

Try to use GetText activity and pass the value to the variable string and from that you can make a condition of your desire.

cheers :smiley:

Happy learning :smiley:

3 Likes

Hi Sir,

In that element there will be two values one is “Information Technology” and other is of “Network /Communication Equipments”

I will show you the image Sir.

image

image

Hi Sir,

I have used but there will be two such different values in that position.

I will show you the image Sir.

image

image

1 Like

so you can either use Image or ELEMENT exists to find the text availability in the page
were we facing any issue in that
Cheers @SOURAV_KUMAR_DAS

1 Like

Hi @SOURAV_KUMAR_DAS

if that the case uses two GetText Activity and pass it two different string variable

cheers :smiley:

Happy learning :smiley:

2 Likes

Hi Palaniyappan Sir,

Which is the faster way to scrape the details get text or Image Exists?

Hi pattyricarte Sir,

Which is the faster way to scrape the details get text or Image Exists?

1 Like

Hmmm if you are checking not specifically for the text. you can use image exists because it return only boolean type unlike the get text it will return string type. You can also specifies in image exist the timeout and the defaul is 30 seconds

@SOURAV_KUMAR_DAS

cheers :smiley:

Happy learning :smiley:

ch

2 Likes

both are different activites to be used at different situations
that is if we want to scrape the data from a window then we can use GET TEXT

and if we want to check whether a text is there in a window or not then we can use Image exists activity

Cheers @SOURAV_KUMAR_DAS

2 Likes