MichaelDimmitt / chrome-extension-toolbox

a bunch of minimal extensions that expose different ways to chrome extension and lets me try out different ideas.
https://docs.google.com/presentation/d/1pp2KqSRZC1RsY3duk5co5tlQ7NPZCBrVtdJOoONeMUg/edit?usp=sharing
0 stars 0 forks source link

create and download a text file #1

Closed MichaelDimmitt closed 1 month ago

MichaelDimmitt commented 3 months ago

https://developer.chrome.com/docs/extensions/reference/api/downloads

removeFile() - https://developer.chrome.com/docs/extensions/reference/api/downloads#method-removeFile download() - https://developer.chrome.com/docs/extensions/reference/api/downloads#method-download

javascript convert a text file into a blob: https://stackoverflow.com/a/59284898/5283424

Metaphor: (The human journey of learning reality):

git ignored config files. https://docs.cypress.io/guides/guides/environment-variables#Option-2-cypressenvjson

MichaelDimmitt commented 3 months ago

https://www.browserstack.com/guide/how-to-clear-cache-between-tests-in-cypress#:~:text=Cypress%20Automation%20Tutorial-,Cache%20storage%20in%20Cypress,session()%20command

MichaelDimmitt commented 3 months ago

use session to save login details between tests. https://docs.cypress.io/api/commands/session#Updating-an-existing-login-custom-command

MichaelDimmitt commented 1 month ago

https://stackoverflow.com/a/24162238/5283424

MichaelDimmitt commented 1 month ago
  1. https://stackoverflow.com/a/24162238/5283424
  2. https://developer.chrome.com/docs/extensions/reference/api/downloads
  3. https://stackoverflow.com/a/26158579/5283424
MichaelDimmitt commented 1 month ago

Resolved in #2

MichaelDimmitt commented 1 month ago

note: content scripts do not support the downloads api. https://stackoverflow.com/a/42996836/5283424

you either need to pass it back to the background script or use javascript to download without using chrome https://stackoverflow.com/a/9834261/5283424