Fix in check_page_loaded and switch_to_chrome