The set of found elements can further be restricted by specifying
options. It's possible to select elements by their text or visibility:

page.all('a',text:'Home')page.all('#menu li',visible:true)

By default Capybara's waiting behavior will wait up to default_max_wait_time
seconds for matching elements to be available and then return an empty result if none
are available. It is possible to set expectations on the number of results located and
Capybara will raise an exception if the number of elements located don't satisfy the
specified conditions. The expectations can be set using:

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.

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.

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.

Find a button on the page.
This can be any <input> element of type submit, reset, image, button or it can be a
<button> element. All buttons can be found by their id, name, test_id attribute, value, or title.
<button> elements can also be found by their text content, and image <input> elements by their alt attribute.

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.

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.

Find a form field on the page. The field can be found by its name, id or label text.

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.

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.

Find the first element on the page matching the given selector
and options. By default #first will wait up to default_max_wait_time
seconds for matching elements to appear and then raise an error if no matching
element is found, or nil if the provided count options allow for empty results.

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.