Exception: PageRecord::MultipleRecords

Inherits:
Exception
  • Object
show all
Defined in:
lib/page_record/errors.rb

Overview

This is raised when the page contains multiple instances of the specfied record type. Use a selector to narrow the search.

“ml

Ajax

Ajax

“hen the following code is executed, the MultipleRecords exception is raised.

“by TeamPage.find(10)

To fix this, use the #first-table in the selector

“by TeamPage.find(10, ‘#first-table’)