Implements page.waits

- [x] @nBerg