Get Text leads to: TypeError: typing.Any cannot be used with isinstance()


I just upgraded the robotframework-browser from 4.3.0 to 5.1.1 an now my test fails on the Get Text keyword.

I have a field that is automatically filled with a value and I want to validate if the value is e.g. 4200.
I use:
Get Text id=uniqueIdentifier == ${expectedValue}

The field:

On version 4.3.0 this worked like a charm. Since the upgrade to 5.1.1 I get:
FAIL TypeError: typing.Any cannot be used with isinstance()

Do I need to change anything in the way I use this?

Thanks in advance.



This seems very likely to be related to a bug we had with Robot Framework 4.0.2. Updating to 4.0.3 should fix it.

If you are sure the problem is not the robotframework version, output of pip freeze could be useful. Please paste it here if possible.

@xylix Thanks, that did the trick!

Note to self: Update everything more frequently!