IF ELSE PROBLEM

Hello there. I have a problem.

I am pulling data using xpath.

  1. xpath
BLOCK:SeleniumGetAttributeValue
LABEL:ikinci-adim
  findBy = XPath
  identifier = "/html/body/div[1]/div/div[1]/div/div/div/div[2]/div/div[2]/div[2]/h4"
  => CAP @islem
ENDBLOCK

IF STRINGKEY @islem Contains "islem basarili"
data.STATUS = "SUCCESS";
END

2.xpath

BLOCK:SeleniumGetAttributeValue
LABEL:ilk-adim
  findBy = XPath
  identifier = "(//p[@class='CoreText-sc-cpl358-0 kppUlo'])[2]"
  => CAP @dec
ENDBLOCK

IF STRINGKEY @dec EqualTo "islem hatali"
data.STATUS = "FAIL";
END

my problem is if 2nd xpath can’t pull data then let it execute 1st xpath.

1.xpath SUCCES
2.xpath FAIL

Thank you from now.

IF XPATH1 EXISTS data.STATUS = “SUCESS”
ELSE
IF XPATH2 etc. 
END
1 Like