For example, given:
<table>
<tr>
<td class="first-name">Scooby</td>
</tr>
<tr>
<td class="first-name">Raffy</td>
</tr>
</table>
And:
collection :rows, locator: 'table', item_locator: '.first-name'
page.rows.first.text should return "Scooby" but instead an error raised.
The error seems to be around this line:
|
Capybara::Selector.normalize(*evaled_locator).xpaths.first |
For example, given:
And:
page.rows.first.textshould return "Scooby" but instead an error raised.The error seems to be around this line:
ae_page_objects/lib/ae_page_objects/elements/collection.rb
Line 70 in 546d9d7