$page->is($other)

Compares the page with another $page object and checks if they are the same.