Skip to content

Capybara.default_max_wait_time not always respected #122

Open
@betelgeuse

Description

@betelgeuse

Actual output

     Failure/Error: expect(page).to have_css 'a', text: 'Link Name', visible: :all
     
     Ferrum::NodeNotFoundError:
       Could not find node with given id

My investigation shows that this code sometimes only waits for around one second and does six retries with the defaults that can be found here:

https://github.com/rubycdp/ferrum/blob/e02b2399dacdcca36f0347832d0580eaee1ee0ed/lib/ferrum/frame/runtime.rb#L8

Expected

Whenever Ferrum::NodeNotFoundError starts bubbling we should retry for the full configured Capybara wait time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions