If condition for whether a text is available or not

Hi,

I want to search for a text is available or not. If not availble, it needs to skip that and go for other.

image

Here I am looking for the “Wire Center” in the typre section. If wire center is not available then it should skip it.

Regards,

You can use if activity with a a contains expression

Hi @raju_alakuntla

Assuming that this data is stored in a DataTable named RecordsDT.

Loop through the records inside an if condition: currentRow("Type).toString.toLower.Trim.contains(“wire center”)

use continue activity in the appropriate section.

Regards,
Aditya

1 Like

@raju_alakuntla

Please use check app state or element exists activty with innertext as a variable of what value you want to search…

Eg : <webctrl tag='TD’ tableCol='2' innertext='*{{NameVarToSearch}}*' casesensitive:innertext='false' />

For safety can include casesensitive else remove…above is example assuming its atable if not table then change tags accordingly

If element exists/check app state returns true then found else not found

Cheers

Hope this helps