modify wait until page loaded to also wait for page's ready state.
get base URL utility method.