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: 

In versions of RPA 11.0 and later the Browse step used to start CEF contains an option for the user agent.

For all previous versions follow the steps below :

  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 (Changes will be reflected the next time CEF runs. e.g. the next CEF robot run).

You will also have to modify this file on your RoboServer after uploading to Management Console. This will impact all CEF-based robots. If you are using RPA v11.x, you can isolate this change to a DA Browse step.

 

For Webkit robots, refer to the following KB:

https://knowledge.kofax.com/Robotic_...pdate_Messages

 

Applies to:  

Product Version Category
RPA 10.x Desktop Automation

 

Author:  Delia Milchis