Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Cookies for select requests in Collection after collection run #1379

Closed
askherconsulting opened this issue Oct 19, 2023 · 4 comments
Closed

Comments

@askherconsulting
Copy link

Question:
I want to clear the cookies from a collection run programatically, but only for some of the endpoints in the collection - others will not re-run without cookies being present.

Is this possible in Thunderclient in a programatic way? Currently, I have to manually go into the selected endpoints after each run and hit the clear all button, but doing this automatically to allow subsequent runs to work without manual edits would be preferable.

Are you using the free version/paid version/trial:

Trial

@rangav
Copy link
Collaborator

rangav commented Oct 19, 2023

Hi @askherconsulting

you can clear cookie from script using await tc.clearCookies()

all functions available
https://github.com/rangav/thunder-client-support/blob/master/docs/tc-types.d.ts

@askherconsulting
Copy link
Author

Thanks - the command however is to clear all cookies.

How can I made this apply to just a single endpoint in a collection?

@rangav
Copy link
Collaborator

rangav commented Oct 20, 2023

Currently not possible, will add it in the next update in 1 or 2 days.

@rangav rangav changed the title Clear Certificate for select requests in Collection after collection run Clear Cookies for select requests in Collection after collection run Oct 20, 2023
@rangav
Copy link
Collaborator

rangav commented Oct 22, 2023

This feature is implemented and published to the marketplace, please update to v2.14.1

See release notes
https://github.com/rangav/thunder-client-support/releases/tag/v2.14.1

Please test and let me know your feedback.

@rangav rangav closed this as completed Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants