Exception: PageRecord::RecordNotFound

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

Overview

This Exception is raised when the specified record is not found on the page. Check your selector, filter and HTML code for details.

<div data-team-id='10'>
    <div data-attribute-for='name'>Ajax</div>
</div>

When the following code is executed, the RecordNotFound exception is raised.

TeamPage.find(11)