Webdriver Delay Problem

Anyone else having latency issues using Webdriver? He works for me on a cucumber with Capybara. It takes more than 30 seconds or even minutes to fill out the form. For some reason, it will fill one field and then pause until another field is filled if both are referenced by identifiers.

Also, I am triggering timeout errors due to this delay. (But they are unstable ...)

There is nothing special in the area. They appear when the page loads, and there is no Ajax on this page.

Does anyone have any ideas?

Here's the error:

execution expired (Timeout::Error)
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/protocol.rb:126:in `readline'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:2026:in `read_status_line'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:2015:in `read_new'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:1051:in `request_without_webmock'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:1037:in `request_without_webmock'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:543:in `start'
     /Users/me/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:1035:in `request_without_webmock'

Edit: This may be due to the fact that I already had an instance of Firefox when I ran the Cucumber tests. Although the timeout frequency has decreased, I still get them often enough, and I think this is still a problem.

2: : And I complete personal info

:

And /^I complete personal info$/ do
  fill_in('first_id', :with => "foo")
  fill_in('second_id', :with => "bar")
  ...more fill_ins...
end

Capybara first_id, . , . , . , first_id, second_id. id , .

. :

...all that stuff I included in the error above...
./features/step_definitions/web_steps.rb:107
./features/step_definitions/web_steps.rb:11:in `with_scope'
./features/step_definitions/web_steps.rb:105:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
/my feature file:30:in 'Then we verify stuff we just filled out'

Then we verify stuff we just filled out :

And %{I should see "foo"}
And %{I should see "bar"}

, ! - , .

+3
2

webmock, , backtrace, - WebDriver HTTP Firefox , , Net:: HTTP .

, WebDriver Curb , , , , webmock.

0

, , , WebMock Net:: HTTP beheviour. ​​ WebMock 1.7.0

0

All Articles