Running SE with Google Chrome Issue

Skip to first unread message

Bozidar Dangubic

Dec 28, 2010, 4:03:51 PM12/28/10
to Selenium Users

I am hoping someone can shed some light with the problem I am trying
to resolve. When running suite of tests with googlechrome it appears
as if Chrome is being launched in Incognito mode. The history is not
being tracked and looks like cookies are not accessible. The
application I am running against uses Google Gears and each time test
hits the page that uses Gears a popup comes up asking for trust
confirmation to allow Gears to run (on localhost). This has all the
symptoms of Chrome running in Incognito mode but from the look of the
browser it does not appear to be so.


Simon Stewart

Dec 30, 2010, 4:08:03 PM12/30/10
Selenium is starting Chrome with a new clean profile each and every
time you use it. Selenium 1 does not offer a mechanism for overriding
this. Selenium 2's ChromeDriver, however, can use an example profile.
Assuming you know where your Chrome profile is located on disk and
you're using Java:

File profileDir = new File("location/on/disk");
ChromeProfile profile =
new ChromeProfile(profileDir);
WebDriver driver = new ChromeDriver(
profile, new ChromeExtension());

We should probably make it easier to create a ChromeDriver without
needing to know about the ChromeExtension, but that's the gist of it.


> --
> You received this message because you are subscribed to the Google Groups "Selenium Users" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at

Reply all
Reply to author
0 new messages