Skip to main content
Kofax

How to change the default user agent used by the Chromium Embedded Framework (CEF)

307444

Question / Problem: 

How to change the default user agent used by the Chromium Embedded Framework (CEF)?

Answer / Solution: 

Follow the steps below when building the robot (on the machine where Design Studio is running):

  1. go to the Kapow installation folder (e.g. C:\Program Files\Kapow 10.3.0.5 266 x64)
  2. go into \nativelib\hub\windows-x32\<id>\node_modules\cef
  3. open cef.cfg file in a text editor
  4. add this line (enter custom user agent, as needed):

    chrome:user-agent = <new user agent>

    E.g.
    chrome:user-agent = Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
     
  5. save the file and restart Design Studio.

 

Applies to:  

Product Version Category
RPA 10.3 + Desktop Automation

 

Author:  Delia Milchis

  • Was this article helpful?