Marlon,

Perhaps checking the browser's status bar to see that the status is
"Done" may work. I've run into similar situations when testing SOAP
applications where a user interaction on one element on the page
triggers the population of a select list. If you're app is written
well, the status text will be changed from "Done" when the trigger
event occurs, and will not be set back to "Done" until after the
select list is populated. If that's the case here try putting a loop
into you code between the trigger event and the line that tries to
access your select_list item. Here's a simple example, with a timeout
option so that it doesn't loop forever:


# Trigger your event that populates the select_list

sleep 1 # Add a short delay to allow time for the status bar text to
change from "Done"

# Define a starting value for the timeout
iTimeout = 0

# Loop until the status bar text to changes back to "Done" or the
timeout is exceeded
while((browser.status != "Done") || (iTimeout != 10 ) do
  sleep 1
  iTimeout +=1 # Increment the timeout value
end

# Access your  Select list


Joe


On Jun 3, 1:35 am, Marlon <[email protected]> wrote:
> Hi,
>
> I'm having a problem with my script due to performance issue with the
> site. The application has a Listbox that populates to many data
> resulting to a poor load time. I already used wait_until but it didn't
> help because the objects were already loaded but the data it not. One
> solution I can think of is to wait until the data on the listbox is
> completely loaded then perform the next operation, but how can I do
> it?
>
> Thanks
> -Lon

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to