By default Selenium runs as fast as possible through the scenarios I defined using Cucumber. I would like to set it to run at a lower speed, so I am able to capture a video of the process.
I figured out that an instance of Selenium::Client::Driver
has a set_speed
method. Which corresponds with the Java API.
How can I obtain an instance of the Selenium::Client::Driver
class? I can get as far as page.driver
, but that returns an instance of Capybara::Driver::Selenium
.
page
is not available, either includeCapybara::DSL
or replace it byCapybara.current_session
– Norby