Opens a web page.

Parameters: address – The resource URL.

– The resource URL. method – The Http method.

– The Http method. headers – An optional dict of extra request hearders.

– An optional dict of extra request hearders. auth – An optional tuple of HTTP auth (username, password).

– An optional tuple of HTTP auth (username, password). body – An optional string containing a payload.

– An optional string containing a payload. default_popup_response – the default response for any confirm/

alert/prompt popup from the Javascript (replaces the need for the with blocks) :param wait: If set to True (which is the default), this method call waits for the page load to complete before returning. Otherwise, it just starts the page load task and it is the caller’s responsibilty to wait for the load to finish by other means (e.g. by calling wait_for_page_loaded()). :param timeout: An optional timeout. :param client_certificate An optional dict with “certificate_path” and “key_path” both paths corresponding to the certificate and key files :param encode_url Set to true if the url have to be encoded :param user_agent An option user agent string. :return: Page resource, and all loaded resources, unless wait is False, in which case it returns None.