UserAgent must be configured before page load