Method: Capybara::Node::Finders#find_by_id
- Defined in:
- lib/capybara/node/finders.rb
#find_by_id(id, **options, &optional_filter_block) ⇒ Capybara::Node::Element
Find a element on the page, given its id.
If the driver is capable of executing JavaScript, this method will wait for a set amount of time and continuously retry finding the element until either the element is found or the time expires. The length of time this method will wait is controlled through default_max_wait_time.
198 199 200 |
# File 'lib/capybara/node/finders.rb', line 198 def find_by_id(id, **, &optional_filter_block) find(:id, id, **, &optional_filter_block) end |