selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Add ‘Clear Browser Cache’ Keyword to IDE wishlist

Open darkartswizard opened this issue 5 years ago • 9 comments

🚀 Feature Proposal

Add ‘Clear Browser Cache’ to the Selenium IDE Keyword wishlist.

Motivation

Allow users to clear a browser cookie session to prevent pre-populated data, or direct jumps to the last known page from a prior run, to optimize creation of unique test user accounts.

##Example // Completed registration Close “MyEcommeceSite” <No Value> Clear Browser Cache <No Target> <No Value> // New User account Open “www.MyEcommeceSite.com”

darkartswizard avatar May 19 '19 15:05 darkartswizard

This feature will be included in a version of Selenium IDE that will use webdriver to perform playback.

corevo avatar May 20 '19 10:05 corevo

Awesome!

On Mon, May 20, 2019 at 5:34 AM Tomer Steinfeld [email protected] wrote:

This feature will be included in a version of Selenium IDE that will use webdriver to perform playback.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium-ide/issues/694?email_source=notifications&email_token=AMDP3YLAMVOHLAGEPK5GUZ3PWJ5B7A5CNFSM4HN4X5B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVYMVDA#issuecomment-493931148, or mute the thread https://github.com/notifications/unsubscribe-auth/AMDP3YPT4DZUXQH4E27SAO3PWJ5B7ANCNFSM4HN4X5BQ .

darkartswizard avatar May 20 '19 13:05 darkartswizard

I noticed that this was removed from 'To do' in Selenium IDE 4. Is this something that will be added to v4 or not?

scottpettyjohn avatar Sep 21 '22 21:09 scottpettyjohn

@scottpettyjohn - I don't think it will make the first pass at least. My goal right now is just making it out of alpha with users being able to do the things they could before. The problem of this command is that if I add it, I have to support it in code-export to like 8 different language bindings.

toddtarsi avatar Sep 21 '22 21:09 toddtarsi

And I'm not opposed to that by any measure, but v3 gets taken down due to the manifest version increment in January, so I'm trying to really focus on the minimum necessary things for transition out of alpha before then.

toddtarsi avatar Sep 21 '22 21:09 toddtarsi

Would you want some help in the overall effort? I would have to get permission from my company first, but I may be able to contribute.

scottpettyjohn avatar Sep 21 '22 22:09 scottpettyjohn

@scottpettyjohn - YES, I really really would appreciate any help that is offered.

toddtarsi avatar Sep 22 '22 03:09 toddtarsi

I would like this as well. Currently each test run does not start with a fresh browser which is making testing harder than it should be

Shocktrooper avatar Nov 02 '23 00:11 Shocktrooper

Hey all, I decided I wanted this too, so I implemented it in the latest alpha and put it out last night on v4. If you set the option for 'persist session' to true, and run the suite in IDE, it will attempt to clear the session on each run. Unfortunately, it plays kind of funny with 'parallel' currently. I need to figure out how to do better session sandboxing in electron to proceed further with this, but it might take a bit because I want to look at instrumenting all playback windows via Bidi (so we can do local playback on lots more stuff basically)

toddtarsi avatar Nov 06 '23 13:11 toddtarsi