Changed the wait for page to load
Merge pull request #370 from AndreiH/wait_for_page_to_load

Changed the wait for page to load