Code review: adding desiredCapabilities.ensureCleanSession support to IEDriver

350 views
Skip to first unread message

劉力愷 (Likai Liu)

unread,
May 15, 2013, 2:51:51 PM5/15/13
to james.h....@gmail.com, Patrick Meenan, selenium-...@googlegroups.com

David

unread,
May 15, 2013, 9:24:36 PM5/15/13
to selenium-...@googlegroups.com, james.h....@gmail.com, Patrick Meenan
Question on ensureCleanSession option for IE. Assuming we can run multiple IE tests in parallel (multiple IE sessions or instances) on same machine, does this clearing of cache apply across all the IE sessions/instances of the tests being run on same machine, or only to the individual driver instance calling that capability?

I had the same question for SafariDriver's version and was told best not to use this ensureCleanSession feature if running tests in parallel (multiple sessions/tests on same browser machine). So it is best used when only running a single instance per machine.

Wanted to get this clarified for IE as well.

It's unfortunate that these browsers are not like FF (and Chrome?) where you do get unique profiles/sessions per instance such that they all don't share the same cache.

劉力愷 (Likai Liu)

unread,
May 17, 2013, 1:50:39 PM5/17/13
to selenium-...@googlegroups.com, james.h....@gmail.com, Patrick Meenan
Just want to mention that the code review has been moved to GitHub as a pull request. Please see:


liulk


On Fri, May 17, 2013 at 11:51 AM, Likai Liu <li...@google.com> wrote:
The clearing of cache applies to all sessions run under the same user account on the same machine, since it clears the Temporary Internet Files in the user's APPDATA directory. I do not know of any way to make IE use a different Temporary Internet Files under the same user.

What you could try is to run sessions under different users on the same machine, through multiple user switching. You should be able to do the same with Safari as well.

liulk

David

unread,
May 17, 2013, 6:54:02 PM5/17/13
to selenium-...@googlegroups.com, james.h....@gmail.com, Patrick Meenan
Thanks for the suggestion Likai. Could you elaborate on how one might run parallel IE/Safari tests (say deployed over Grid) on same node using multiple user switching. Or does that approach only work a certain way?

Would it be something like have multiple user accounts logged in to same machine (but one is active desktop while the others are backgrounded/locked in terms of Windows) but each one starts a node instance (supporting 1 IE/Safari browser) before being backgrounded? Or alternatively, we start multiple node instances on the logged in desktop/user, but for each instance we do "Run As" a particular user (on Windows) and for Mac assume use the terminal to switch to other user account and execute node instance?

On Friday, May 17, 2013 8:51:17 AM UTC-7, Likai Liu wrote:
The clearing of cache applies to all sessions run under the same user account on the same machine, since it clears the Temporary Internet Files in the user's APPDATA directory. I do not know of any way to make IE use a different Temporary Internet Files under the same user.

What you could try is to run sessions under different users on the same machine, through multiple user switching. You should be able to do the same with Safari as well.

liulk

On Wednesday, May 15, 2013 9:24:36 PM UTC-4, David wrote:

劉力愷 (Likai Liu)

unread,
May 20, 2013, 11:02:56 AM5/20/13
to selenium-...@googlegroups.com, mang...@gmail.com, Jim Evans, Patrick Meenan
Hi David,

I'm afraid I'm not an expert in Windows or Mac OS X admin, but what you suggested sounded reasonable, whichever works for you.

liulk


--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-developers/KAB7rPW-0U4/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to selenium-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages