how to open browser chrome ... without extra parameter?

Skip to first unread message

Andrea Bisello

unread,
Feb 24, 2016, 12:11:05 PM2/24/16
to robotframework-users
When i Open Browser chrome with selenium2library, chrome will be opened with a lot of extra parameters.

i can recognize the extra parameter opening chrome://version

this is my normally used chrome parameters

Command Line "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-startup-window --flag-switches-begin --flag-switches-end
Executable Path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Profile Path C:\Users\andrea.bisello\AppData\Local\Google\Chrome\User 


but when i open by robot framework i obtain

Command Line "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-logging --ignore-certificate-errors --load-extension="C:\Users\ANDREA~1.BIS\AppData\Local\Temp\scoped_dir7868_20837\internal" --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12796 --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\ANDREA~1.BIS\AppData\Local\Temp\scoped_dir7868_27116" --flag-switches-begin --flag-switches-end data:,
Executable Path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Profile Path C:\Users\ANDREA~1.BIS\AppData\Local\Temp\scoped_dir7868_27116\Default


this make a problem, because my test page generate a cookie based on the user browser cache.

everytime chrome will be opened with those parameter, cache change (or will be disabled) and so my cookie will be generated different.

Internet explorer and firefox keep the cookie different.

i think the problem is about the parameter.

how to open chrome without those parameter?

thanks.

Kevin O.

unread,
Feb 25, 2016, 2:15:56 PM2/25/16
to robotframework-users
Default behavior is starting with a new profile every time Open Browser is used. Cookies are stored in the profile.
If you do not want to manually manage the cookies, your first step might be to use the same profile across multiple browser sessions.

Reply all
Reply to author
Forward
0 new messages