Cookie management in Chromium built-in browser
Use the Chromium built-in browser to manage cookies.
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.
-
Insert a Browse step.
-
Select Load page and enter the Application Name.
-
In the URL field, type cef://cookies and execute the step.
Add a new cookie to the CookieStore
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.
Manage cookies with Browse steps
Use a Browse step to add or delete cookies directly by a request.
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:
- Insert a Browse step and configure it to open the web page.
- Right-click the browser tab, select Set Cookie from the Application Action menu, and configure the properties.
- 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:
- Add a text variable in the Robot definition pane.
- Insert a Browse step and configure it to open the required web page.
- Open the CookieStore to view the list of cookies.
- Right-click the browser tab, select Get Cookie from the Application Action menu, and configure the properties.
-
Execute the step.
Delete Cookie
To remove the selected cookie:
- Insert a Browse step and configure it to open the required web page.
- Open the CookieStore to view the list of cookies.
-
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.
-
- Execute the step and open the CookieStore to view the result.
Clear All Cookies
To remove all cookies:
- Insert a Browse step and configure it to open the required web page.
- Right-click the browser tab, select Clear All Cookies from the Application Action menu.
- 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:
- Add a text variable in the Robot definition pane.
- Insert a Browse step and configure it to open the required web page.
- Open the CookieStore to view the list of cookies.
- Right-click the browser tab, select Export Cookies from the Application Action menu, and configure the properties.
- 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:
- Add a binary variable in the Robot definition pane.
- Insert and configure a Read File step.
- Insert a Browse step and configure it to open the web page.
- Right-click the browser tab, select Import Cookies from the Application Action menu, and configure the properties.
- Execute the step and open the CookieStore to view the result.