How to Catch Assertion Error in Try & Except Block

I had a problem catching the exact timeout error and ended up using GLOB with * on both sides of expected error message. Like this:

TRY
    Click    locator
EXCEPT    *Timeout 10000ms exceeded.*    type=GLOB
    Log    Timeout error caught, continuing the test
END

Source

Maybe you could try this in your test:

TRY
    Browser.Wait For Condition Element States ${Fetching_Quote_carrier} == detached timeout=01:00
EXCEPT    *AssertionError:*    type=GLOB    AS    ${Error}
    Log ${Error}
EXCEPT    *TimeoutError:*     type=GLOB    AS     ${Error}
    Log ${Error}
END
3 Likes