Context Less

A context-less function does not refer to previous events or results during the script execution. Thus it works without using information from previous steps. This means that for a context-less function call, all information that is necessary to perform this function must be specified in the script. Scripting or recording a context-less function is therefore the reason of session or other dynamic information in scripts.

A typical feature of context-less functions is that they have a parameter that specifies the URL to download.

Context-less functions in Silk Performer's page-level API are:

WebPageUrl
Requests a document.
WebPageForm
Submits the form data.
WebPagePost
Posts the content of a Web form in binary format to the Web server by means of the HTTP POST method.
WebPagePostFile
Posts binary data to the Web server by means of the HTTP POST method.
WebPageCustomRequest
Requests and reads a complete Web page specified by a URL using HTTP. If the retrieved document is of content type HTML, it is parsed, and embedded documents are requested.
WebPageCustomRequestBin
Requests and reads a complete Web page specified by a URL using HTTP. The optional request body consists of binary data. If the retrieved document is of content type HTML, it is parsed, and embedded documents are requested.
WebPageCustomRequestFile
Requests and reads a complete document specified by a URL using the specified HTTP method.

If any of these functions uses a form from the "dclform" - section in the script, we say that this form is used context-less. This is because there is no corresponding HTML form where unchanged (e.g. hidden) values can be taken from. All form values must be specified in the script.