Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Running Selenium at a lower speed
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
EricB  
View profile  
 More options Feb 28 2011, 1:43 pm
From: EricB <ebel...@gmail.com>
Date: Mon, 28 Feb 2011 10:43:52 -0800 (PST)
Local: Mon, Feb 28 2011 1:43 pm
Subject: Re: Running Selenium at a lower speed
On Jan 27, 6:28 am, Matthijs Langenberg <mlangenb...@gmail.com> wrote:

> Is there a way for me to access the Selenium::Client::Driver object
> directly? I would like to call the 'set_speed' method, so I am able to
> make a video recording of the process.

> When I call `page.driver.browser`, an Selenium::WebDriver::Driver is
> as far as I get.

 This is a hack to slow down webdriver in Capybara
 so you can more easily watch what is happening.
 paste this above the top of a Capybara Webdriver RSpec test if you
need to debug something in slo-mo.
 This worked for me...

   require 'selenium-webdriver'

   module ::Selenium::WebDriver::Remote
     class Bridge
       def execute(*args)
         result = raw_execute(*args)['value']
         sleep 0.5
         result
       end
     end
   end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.