If you use the desktop version of EveryStep Scripting Tool and need to send user-defined cookies along with the web application test requests, you need to manually add the SetCookieForUrl method to the script. See the full definition of the SetCookieForUrl method in our wiki.

If the SetCookieForUrl method is used, the cookie with the provided name-value pair will be added to each request that is sent to the URL while executing the EveryStep script.

First, start the EveryStep Scripting Tool Desktop and follow the recommendations below:

  1. Record a new script or load a previously created device from the Dotcom-Monitor platform or local machine (the Load Device button on the left-hand sidebar).
  2. Enable the Allow to edit script manually feature in the Advanced Settings menu.
  3. To specify user-defined cookies, add the following method to the script and set its parameters:
SetCookieForUrl("<URL>", "<Name>", "<Value>");

For example, you can add user-defined cookies to distinguish test script requests generated by Dotcom-Monitor versus requests generated by real users.

Make sure to include http://  into the URL address.

Correct:

tab0.GoTo ("https://www.site.org");
SetCookieForUrl ("https://www.site.org", "cookie_name", "cookie_value");

InCorrect:

tab0.GoTo ("https://www.site.org");
SetCookieForUrl ("www.site.org", "cookie_name", "cookie_value");