Added hasElement() method to the Page class

Method checks for element existence on a page.