In the page object, I would like to have access to several divs in a certain way.
This is access to the first div, which corresponds to:
div(:search_result, id: /rptSearchResults/)
This will access multiple divs that match if divs exist in PageObject :: Accessors:
divs(:search_result, id: /rptSearchResults/)
So far I have tried:
visit_page SearchResultsPage do |page|
Can anyone suggest a better way to do this inside the page-object?
Thanks in advance...
source share