closePage: Close a web page.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Close a connection to a web page.

Usage

1
closePage(pageID)

Arguments

pageID

A page identifier, as returned by, e.g., htmlPage et al.

Details

This function severs the connection to the web browser that is showing the web page, so no further communication can occur. The browser tab or window that was opened to show the web page is not closed (though if the web page is being viewed in a headless browser, the headless browser is shut down).

Value

The content of the web page (though only for headless browsers currently).

Author(s)

Paul Murrell

See Also

htmlPage

Examples

1
2
3
headlessPage <- htmlPage(client=phantomClient)
appendChild(headlessPage, htmlNode("<p>test</p>"))
closePage(headlessPage)

pmur002/DOM documentation built on May 25, 2019, 10:20 a.m.