[build] Fixed failing tests.
- The correct logic is to first go to an URL and then instantiate the page object for that URL, not the other way arround.

(cherry picked from commit fdf810f0ff6babd0aa1c1ef8fdd5c5bac6df4249)