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?
相关问题
- Save_and_open_page not picking up scss markup
- Capybara & RSpec
- List child elements for a Capybara/Poltergeist ele
- How can I test in Capybara that a page has *not* r
- Missing host to link to! Please provide the :host
相关文章
- How to use synchronize in Capybara exactly?
- before(:each) for all tests except one
- Running spec for a rails engine from its parent ap
- Check if element has two classes
- test.host in Rspec testing Rails redirect
- Capybara - Submit a form without button
- Title test failing for request specs in Michael Ha
- How do you perform javascript tests with Minitest,
You can use using_wait_time(seconds) method like:
or
:wait
option (that appeared in Capybara 2.1).Note that
:wait
option was supported only byfind
method in Capybara 2.1.Support for
:wait
option in matchers (i.e.has_x?
andhave_x
methods) has been added in Capybara 2.2: