Re: Testing that a value is set.

2005-04-08 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >I am using winGuiAuto to test a program. I want to check that a > varible is set. > > In the following code I am doing if(len(str(hwnd)) < 0) What is the > python way? you're expecting a string with negative length? that's pretty weird. what language uses that mechan

Testing that a value is set.

2005-04-08 Thread erinhouston
I am using winGuiAuto to test a program. I want to check that a varible is set. In the following code I am doing if(len(str(hwnd)) < 0) What is the python way? def clickNdSyncStopButton(hwnd=None): if(hwnd == None): hwnd = winGuiAuto.findTopWindow("NDSync") if(len(str(hwnd)) < 0)