Note that there are some explanatory texts on larger screens.

plurals
  1. POWebdriver latency issue
    primarykey
    data
    text
    <p>Is anyone else experiencing a latency issue with Webdriver? I have it running on Cucumber with Capybara. And it takes more than 30 seconds or even minutes to fill in a form. For some reason, it will fill in one field and then pause before filling in another field when both are referenced by id.</p> <p>Also, I'm running into Timeout Errors because of this latency. (But they are erratic...)</p> <p>There isn't anything special about the fields. They appear on page load and there is no Ajax on this page. </p> <p>Anyone have any ideas?</p> <p>Here's the error:</p> <pre><code>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' </code></pre> <p><strong>Edit:</strong> This might be related to the fact that I had a Firefox instance already open when I ran the Cucumber tests. Although the frequency of timeouts decreased, I still get them often enough that I think it's still an issue.</p> <p><strong>Edit2:</strong> Feature file will specify a step: <code>And I complete personal info</code></p> <p>The step will be further defined as other steps:</p> <pre><code>And /^I complete personal info$/ do fill_in('first_id', :with =&gt; "foo") fill_in('second_id', :with =&gt; "bar") ...more fill_ins... end </code></pre> <p>Capybara will find <code>first_id</code> sometimes and the rest of my scenario executes fine. Other times, it will time out. It's very unpredictable, in my opinion. Still other times, it'll find <code>first_id</code> but not find <code>second_id</code>. These <code>id</code>s do indeed exist on the page, by the way.</p> <p>I should have included more information about the error. It will often look like this:</p> <pre><code>...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' </code></pre> <p><code>Then we verify stuff we just filled out</code> is defined with these additional steps:</p> <pre><code>And %{I should see "foo"} And %{I should see "bar"} </code></pre> <p>I hope this extra information helps! If you need anything else, please let me know in the comments.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload