Hi All,
I am receiving an error: AssertionError: Elements states ‘[‘attached’, ‘defocused’, ‘editable’, ‘enabled’, ‘visible’]’ (list) should be ‘[‘detached’]’ (list)
In this case, I’m waiting for an element state to become detached but sometimes it is not and the Assertion Error appears in the Log which causes the Test Execution to stop immediately.
I’ve tried to catch this assertion error by using the below Try & Except:
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
But this is not working.
Can anyone suggest this?