I want to have different Capybara wait times in my code depending on how much time they usually take to load completely? Do I have to repetitively keep changing the Capybara.default_wait_time or is there a better way?
I want to have different Capybara wait times in my code depending on how
Share
You can use using_wait_time(seconds) method like:
or
:waitoption (that appeared in Capybara 2.1).Note that
:waitoption was supported only byfindmethod in Capybara 2.1.Support for
:waitoption in matchers (i.e.has_x?andhave_xmethods) has been added in Capybara 2.2: