-
Notifications
You must be signed in to change notification settings - Fork 7
Browser
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.
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).
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.