Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPA in incognito browser - try this simple hack to enable incognito mode #123

Closed
richylyq opened this issue Apr 9, 2020 · 2 comments
Closed
Labels

Comments

@richylyq
Copy link

richylyq commented Apr 9, 2020

Query

Is it possible to run the RPA in incognito browser, instead of the normal browser instance.
i saw that it is possible to run in headless mode, but i am not sure whether incognito and headless mode serves the same purpose..
I am running RPA in my local jupyter notebook so please also direct the method to change the tagui.py file if there is a need to change anything. Thanks in advance

@kensoh kensoh changed the title RPA in incognito browser RPA in incognito browser - try this hack to enable incognito mode Apr 9, 2020
@kensoh kensoh added the query label Apr 9, 2020
@kensoh
Copy link
Member

kensoh commented Apr 9, 2020

Hi @richylyq as RPA for Python is meant to replicate normal usage of web browser, it does not have an option to run incognito or headless mode. However, there are hacks to do so if you wish.

For incognito mode, first find the folder where TagUI is automatically installed.

For Windows, location of TagUI is %APPDATA%\tagui (%APPDATA% is usually C:\Users\Username\Appdata\Roaming). Then open the file src\tagui.cmd for edit. Add in the incognito switch by changing

set chrome_switches=--user-data-dir=chrome\tagui_user_profile --remote-debugging-port=9222 about:blank

to

set chrome_switches=--user-data-dir=chrome\tagui_user_profile --incognito --remote-debugging-port=9222 about:blank

For macOS / Linux it is in /.tagui folder ( is the user home folder, eg /Users/username for mac). Then open src\tagui for edit. Add in the incognito switch by changing

chrome_started="$(uname -s)"; chrome_switches="--user-data-dir=chrome/tagui_user_profile --remote-debugging-port=9222 about:blank"

to

chrome_started="$(uname -s)"; chrome_switches="--user-data-dir=chrome/tagui_user_profile --incognito --remote-debugging-port=9222 about:blank"

For reference, adding running in headless mode example here - #109

However, note that these hacks will be gone when you upgrade the package to a new version.

@kensoh
Copy link
Member

kensoh commented Apr 9, 2020

Incognito is not the same as headless. Headless means that the browser is invisible, automation running in background without seeing the browser at all. Incognito is when you want to prevent browsing history from being saved but you can see the browser running.

@kensoh kensoh changed the title RPA in incognito browser - try this hack to enable incognito mode RPA in incognito browser - try this simple hack to enable incognito mode Apr 12, 2020
@kensoh kensoh closed this as completed Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants