0

I am able to launch chrome using systemutil.run "chrome.exe" but I have no idea what command I have to use to launch chrome in incognito window.

systemutil.run "chrome.exe"

Chrome incognito should be launched in a new window which means it should launch in a new instance of chrome even if there is already an open window of chrome incognito.

geisterfurz007
  • 5,292
  • 5
  • 33
  • 54
  • @supputuri, tried this but not working. However the below one is working. Systemutl.run "chrome.exe", "-incognito http://www.google.co.in" – Kishore Palli Jun 25 '19 at 12:31

3 Answers3

0

Just pass the preference --incognito as part of systemutil run as shown below.

systemutil.run "chrome.exe --incognito"
supputuri
  • 13,644
  • 2
  • 21
  • 39
0
Systemutil.Run  "chrome.exe", " -incognito " & URL
geisterfurz007
  • 5,292
  • 5
  • 33
  • 54
0
SystemUtil.Run "C:\Program Files\Google\Chrome\Application\chrome.exe",  " -incognito https://stackoverflow.com/"

This works for UFT one Version 2022.0.0.1004

Fedor
  • 17,146
  • 13
  • 40
  • 131
Yuvaraj K
  • 9
  • 1