Cookie management in Chromium built-in browser

Manage cookies on the Cookies page

To manage cookies in the Chromium built-in browser, open the CookieStore page. To do so, perform the following steps.

  1. Insert a Browse step.

  2. Select Load page and enter the Application Name.

  3. In the URL field, type cef://cookies and execute the step.

Add a new cookie to the CookieStore

  1. Specify the cookie attributes in the corresponding text boxes:
    • Domain

    • Name

    • Value

    • Path

    • Expires/Max-Age

  2. Click HTTP to enable the HTTP restriction.
  3. Click Secure to enable an encrypted connection (HTTPS).
  4. Click Add to add the cookie.

Filter the cookies

All cookies on the Cookies page can be filtered by any attribute value.

To filter cookies by attribute, type any attribute value in the Filter field.

Delete the cookies

Use the Cookies page to delete cookies from the CookieStore either separately or all together.

  • To delete a cookie from the CookieStore, click Delete at the end of the line.

  • To delete all cookies from the CookieStore, click Remove all.

Manage cookies with Browse steps

Use a Browse step to add or delete cookies directly by a request.

  • To add a new cookie to the CookieStore, type the required value in the URL field of the Browse step.

    Example: cef://cookies/create?domain=MyDomain.com&name=MyCookie&value=MyValue&path=/MyPath&expires=2030-12-31T20:30:10.000Z&http=on&secure=off

  • To delete a cookie from the CookieStore, type the required value in the URL field of the Browse step.

    Example: cef://cookies/remove?domain=.MyDomain.com&name=MyCookie&value=MyValue&path=/MyPath&expires=2030-12-31T20:30:10.000Z&http=on&secure=off

  • To delete all cookies from the CookieStore, type the following value in the URL field of the Browse step:

    cef://cookies/removeall

Extract values from cookies

On the Cookies page, you can extract a cookie value to a text variable.

Right-click a cookie attribute to extract its value using the context menu.

Manage cookies with application actions

Use the Chromium built-in browser Application actions to manage cookies. The examples below will help you configure the required actions depending on your needs.

Set Cookie

To add or replace a cookie:

  1. Insert a Browse step and configure it to open the web page.
  2. Right-click the browser tab, select Set Cookie from the Application Action menu, and configure the properties.
  3. Execute the step and open the CookieStore to view the result.

Get Cookie

To retrieve a cookie value from the browser and store it in a text variable:

  1. Add a text variable in the Robot definition pane.
  2. Insert a Browse step and configure it to open the required web page.
  3. Open the CookieStore to view the list of cookies.
  4. Right-click the browser tab, select Get Cookie from the Application Action menu, and configure the properties.
  5. Execute the step.

Delete Cookie

To remove the selected cookie:

  1. Insert a Browse step and configure it to open the required web page.
  2. Open the CookieStore to view the list of cookies.
  3. Right-click the browser tab, select Delete Cookie from the Application Action menu, and configure the properties.
    • To delete all host cookies that are visible in the required scope, specify only URL.

    • To delete all domain cookies with the specified name in the scope, specify both URL and Name.

  4. Execute the step and open the CookieStore to view the result.

Clear All Cookies

To remove all cookies:

  1. Insert a Browse step and configure it to open the required web page.
  2. Right-click the browser tab, select Clear All Cookies from the Application Action menu.
  3. Execute the step and open the CookieStore to view the result.

Export Cookies

To export cookies from the browser, return them in a text variable, and save the file to your local computer:

  1. Add a text variable in the Robot definition pane.
  2. Insert a Browse step and configure it to open the required web page.
  3. Open the CookieStore to view the list of cookies.
  4. Right-click the browser tab, select Export Cookies from the Application Action menu, and configure the properties.
  5. Insert and configure a Write File step to convert the text value into binary and save file to your local computer or a Robot File System.

Import cookies

To import exported cookies:

  1. Add a binary variable in the Robot definition pane.
  2. Insert and configure a Read File step.
  3. Insert a Browse step and configure it to open the web page.
  4. Right-click the browser tab, select Import Cookies from the Application Action menu, and configure the properties.
  5. Execute the step and open the CookieStore to view the result.