Check multiple tab and throw business exception

Hi guys
I have below screen and there are Option 1 , and option 2 tab
my scenario is here I need to check if there are multiple option tab exist consider as business exception only one option tab should be there to perform next action and number does not matter for example Option 1 or Option n.
please suggest me what approach I need to follow to check this.

Hi @Aleem_Khan

Just try on this workaround

  • Use Screen Scrapping or get text and indicate on the whole tab from general approval to Next Action.
  • And In if use regex like System.Text.RegularExpression.Regex.Matches(“SS or Get Text var”,“Option”).count>0
    • TRUE-> Throw a bussiness exception
    • False-> Continue your process

Hope this Helps


1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.