nbenitus
14 years agoContributor
How to wait for a listbox to be non-empty
Hi,
In my testcase, I am trying to do some operations on a list box. The listbox is initially empty, then there is some information that gets displayed in it.
In my script, I am waiting for the listbox to be non-empty (or wItemCount > 0). Here is the line I am using:
Call lstDirectory.WaitProperty("wItemCount", ?, 20000)
However, I don't know what to put as second parameter (displayed as "?").
I have tried the following: >0, <>0 and many similar entries, without luck.
Thank you in advance.
Note: I am using Vbscript.
In my testcase, I am trying to do some operations on a list box. The listbox is initially empty, then there is some information that gets displayed in it.
In my script, I am waiting for the listbox to be non-empty (or wItemCount > 0). Here is the line I am using:
Call lstDirectory.WaitProperty("wItemCount", ?, 20000)
However, I don't know what to put as second parameter (displayed as "?").
I have tried the following: >0, <>0 and many similar entries, without luck.
Thank you in advance.
Note: I am using Vbscript.