Find out list of text from website based on few condition?

Hi Team,

Here I want find out text from website based on condition
1-condition will remain Constand
2-but text may vary website to website.
let say condition is like :- If A==true, then text will display like X
if B=true , then text will displayed like Y

Hi Team,

Any one have any solution pls…

Thanks

@sfdc_sfdc
Hi

You can use pick branch activity inside pick container

Your condition you can declare inside trigger and action part will the activity to retrieve the value you want to read

Pick branch activity is design for the same purpose conditions based operations

Hope this helps !

Hi @sfdc_sfdc

You can use regex in selectors

Example

<webctrl aaname='(Project|Stage)Name' matching:<attribute-name>='regex'>

<ctrl name='*.html' role='document' /><ctrl name='(.*Print)|(.*Save)*' role='push button' matching:name='regex' aastate='((?!unavailable).)*' matching:aastate='regex' casesensitive:name='false' casesensitive:aastate='false' />

You can make your selectors properties case sensitive

<webctrl aaname='(proJecT|stage)Name' matching:<attribute-name>='regex' casesensitive:<attribute-name>='false'>

Hi,
Thanks for replay
could you pls share XML script for this, so that I can get clear understanding…

@sfdc_sfdc What is the next step you need to do in your automation?
Example: Click on the text that appears, or just check if one of the texts appears?

Hi Eric,
Thanks for your replay,
here we are dealing with millions of web url, we do not know where those text are in the url. script should like that, once we pass web url, then script should able to identify the text & displayed message.

Got it, in that case you might need to try the approach from @jast1631
Million of URLs sounds very tricky