Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Browser

Adithya Joshua Dsilva edited this page Nov 26, 2020 · 5 revisions

Browser Configuration

The library cpt-lib is used to handle various website related processing, which uses an automated browser instance (through the DevTools protocol). The session cookies of the profile in the specified browser are used to access user restricted functionalities (submitting solution to a problem, for example).

Not all browsers are supported. Refer here for a list of supported browsers.


Select browser - set headless browser in the cpt config (or cpt <website> config for website specific configurations) menu to load the browser configuration wizard.

What is the command to start a new browser instance?

This is the shell command to launch the browser. A list of the common values:

  • Linux:

    google-chrome
    /usr/bin/google-chrome
    
    chromium
    /usr/bin/chromium
    
  • Windows:

    'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
    'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
    
  • MacOS:

    '/Applications/Chromium.app/Contents/MacOS/Chromium'
    '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
    

Alternatively, you can copy-paste the value of Executable Path present in page chrome://version/ (Chromium) or edge://version/ (Microsoft Edge).

Where is the default profile of the browser located?

The default profile directory (where cookies and other session data are stored) is commonly present at the following locations:

  • Linux:

    /home/<username>/.config/google-chrome/
    
  • Windows:

    C:\Users\<username>\AppData\Local\Google\Chrome\User Data\
    C:\Users\<username>\AppData\Local\Microsoft\Edge\User Data\
    
  • MacOS:

    Users/<username>/Library/Application Support/Google/Chrome/
    

Alternatively, you can view the profile path of your browser by visiting page chrome://version/ (Chromium) or edge://version/ (Microsoft Edge) - search for the key Profile Path. Ensure you strip the suffix 'Default' from the profile path.

Clone this wiki locally