ubuetake / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

I would like to run in incognito mode. #161

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system :
.Net Framework version :
Office Version :
SeleniumWrapper version :

What is your issue ?
I do not know the English language.
I have a question difficult .
The use of chrome translator .

I would like to run in incognito mode.

How to Use Now:
    With IE
        .start WebType, "http://m.naver.com/"
        .open "http://m.naver.com/"
        .windowFocus
        Do
            SendKeys "^+n"    '// 시크릿 모드(Secret Mod)
            hWnds = .WindowHandles
        Loop Until UBound(hWnds) > 0
        Debug.Print .WindowHandle
        LOGT "기존창을 종료합니다."
        .Close
        .switchToWindow hWnds(1)
        .setTimeout (10000)
        LOGT "Daum 접속..."
        .open "http://m.daum.net/"

Use code:
    SendKeys "^+n"    '// 시크릿 모드(incognito Mod)

I want a different way.
I would like to use the shell .

  sample code:)
    Shell """C:\Program Files\Google\Chrome\Application\chrome.exe"" --incognito"

I would like to know a different way .
"incognito" is important.

Please help me.

Original issue reported on code.google.com by heesung2...@gmail.com on 30 Jun 2015 at 4:10

GoogleCodeExporter commented 8 years ago
For Chrome:
driver.AddArgument("--incognito")
driver.Start "chrome", "http:..."

For Firefox:
driver.SetPreference("browser.privatebrowsing.autostart", True)
driver.Start "firefox", "http:..."

Original comment by florentbr on 21 Jul 2015 at 6:45