How do I get started doing this? I feel like it must be very easy but I don’t think the standard “if” statement actually does this from what I can see in the docs.
Yes, that’s exactly it!
This IS really simple. Here is how I would code it:
STORE | TRUE | !STATUSOK
OPEN | HTTPS://FIRSTSITEURL (A.COM)
IF_V1_DEPRECATED | “${!statusOK}” == “true”
SELECTWINDOW | TAB=OPEN | HTTPS://SECONDSSITEURL (B.COM)
ENDIF_DEPRECATED
!StatusOK checks the status of the previous command (in this case, the OPEN). !StatusOk is NOT set to true by default. You MUST set it before performing each test. SelectWindow with Tab=open opens the new tab (see Selenium commands). Good luck, have fun.