Forum Discussion

cameron_shiell's avatar
Occasional Contributor
4 years ago

Basic CheckProperty issue

I'm just getting started with TestComplete so I was playing around with it and the Windows Calculator.  I've created a basic python script to confirm that 1+1=2.     def basic_test(): Calcula...
  • cameron_shiell's avatar
    4 years ago

    Ah, it's got some deep unicode formatting characters on either side of it that need to be split off.  It's not brilliant, but I've added a function to do it:


    def strip_unprintable_characters(input_string)
        return "".join([i if ord(i) < 128 else '' for i in input_string]).strip()