Citrix screen scrape empty field

Hi, I have 2 fields from a citrix application. I wanted to select and copy data from field 1 and if it is empty then select and copy data from field 2. My issue if field 1 is empty, it stay there for a while then error out. Please advise how can i make this work.



One simple way would be to surround that step with a try-catch. In the catch portion you can either specify timeoutexception, or just the general system.exception & log a message stating “no data found in field 1, attempting to coyp data from field 2” or something along those lines

1 Like