This worked perfectly for us. We then hit a different problem, but wondered if you had any guidance. How to navigate to a URL in the Running InCognito Edge Browser.
We are able to maximize the browser, retrieve properties from the browsers, etc., but unable to navigate.
the webBrowser variable is passed into our function as Edge, Firefox, etc.
Browsers.Item[webBrowser].RunOptions="-inprivate"
Browsers.Item[webBrowser].Run()
Delay(4732)
browserWin = Sys.Browser(webBrowser).BrowserWindow(0)
browserWin.Maximize()
browserWin.Activate()
currentTitle = browserWin.WndCaption
Log.Message("Before using the ToUrl method")
Log.Message("title of brwoser: " + currentTitle)
# can't find the page, even though it can maximize & get the browser title -- :-(
browserWin.ToUrl(url, 7233)