Skip to content

4 Defining Element Collections

Titus edited this page Jan 27, 2018 · 1 revision

To define collections of elements, use the elements method instead of the element method:

  elements(:form_inputs) { browser.form(id: 'my_form').inputs }

This is accessed by:

$ form_inputs.class
# => InputCollection
Clone this wiki locally