How to open tab in incognito?

How can i open tab in incoginto. It always open in main browser

To open an Incognito window, you can use a keyboard shortcut:

  • Windows, Linux:** Press Ctrl + Shift + n
  • Mac:** Press + Shift + n

=> You can simulate this shortcut press with XTYPE, e. g XTYPE | ${KEY_CTRL+KEY_SHIFT+KEY_N} for Windows/Linux and XTYPE | ${KEY_CMD+KEY_SHIFT+KEY_N} for Mac.

Before XType, make sure the browser has the focus. If not, do an XClick somewhere on the browser, or use BringBrowserToForeground.