Sleep 2 it is a last step.
And I wrote "when I set values into textboxes, selectlists and others it 
takes about 5 seconds for every control".
It means that this string "page.text_field_element(:id => 'cntrPlanName', 
:frame => frame).value = "Lorem Ipsum"" executes about 5 seconds.

On Monday, January 5, 2015 8:12:34 PM UTC+2, niartseoj wrote:
>
> what happens when you remove
> sleep 2?
>
>
>
> On Thursday, December 25, 2014 11:51:42 AM UTC-5, Andrew Petrenko wrote:
>>
>> Hello.
>> I have popups with frames (not iframes). And when I set values into 
>> textboxes, selectlists and others it takes about 5 seconds for every 
>> control.
>> I wonder, is this a defect of watir or there is some other way for 
>> workaround?
>>
>> Here is my code:
>> @browser.window(:title => "Add New Plan").use do
>>     on(AddNewPlan) do |page|
>>       page.in_frame(:name => 'fraContainer') do |frame|
>>         page.text_field_element(:id => 'cntrPlanName', :frame => 
>> frame).value = "Lorem Ipsum"
>>         page.button_element(:id => 'btnOK', :frame => frame).click
>>         sleep 2
>>       end
>>     end
>> end
>>
>

-- 
-- 
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/d/optout.

Reply via email to