Oscar has already answered your question, and below is an example of it.

browser.div(:class => "spinner").wait_while_present

More info here: http://watirwebdriver.com/waiting/

The idea is to use the built-in method *"where you just wait until 
something disappears"*.
 
 object.wait_while_present


On Friday, October 11, 2013 9:13:26 AM UTC-7, Oscar.Rieken wrote:
>
> the spinners tend to be elements sometimes they are in divs sometimes they 
> are just javascript and images 
> either way they exist on the page so you can locate them
> and if you can locate them you can wait while they are there
>
>
> On Fri, Oct 11, 2013 at 12:09 PM, Mariano Giagante 
> <[email protected]<javascript:>
> > wrote:
>
>> Lol maybe it might sound like that.
>>
>> Well, actually I'm trying to improve a script at work but as I can't show 
>> any of the code, I prefer to ask for guidance only.
>>
>>
>>
>> El viernes, 11 de octubre de 2013 13:00:54 UTC-3, Oscar.Rieken escribió:
>>>
>>> Sounds like interview questions?
>>>
>>>
>>>
>>>
>>> On Fri, Oct 11, 2013 at 10:28 AM, Mariano Giagante <
>>> [email protected]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I'd like to receive some recommendations on how to wait while a spinbox 
>>>> is present.
>>>> I know this question will sound too vague, but I don't need any 
>>>> specific code to apply.
>>>>
>>>> I need to know things like:
>>>>
>>>> What kind of code implements them? 
>>>> Do they usually have a class/id attribute?
>>>> Will they be present among the browser instance elements when they are 
>>>> no longer visible?
>>>> If various spinboxes appear on screen at the same time, can I refer to 
>>>> each one of them separately?
>>>>
>>>> Is wait_while_present method suitable to make my script wait until the 
>>>> load is finished?
>>>>
>>>> Thanks in advance, and greetings from Argentina.
>>>> Mariano.
>>>>
>>>> -- 
>>>> -- 
>>>> Before posting, please read http://watir.com/support. In short: search 
>>>> before you ask, be nice.
>>>>  
>>>> [email protected]
>>>> http://groups.google.com/**group/watir-general<http://groups.google.com/group/watir-general>
>>>> watir-genera...@**googlegroups.com
>>>>
>>>>  
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Watir General" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to watir-genera...@**googlegroups.com.
>>>>
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>
>>>  -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to