Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Install extension with API key in Selenium

  • Žiadne odpovede
  • 0 má tento problém
  • 16 zobrazení
more options

Hello, I'm trying to install firefox extension on selenium headless browser but I need to configure the extension to use an API key. The documentation of the extension says that I need to download the xpi file, extract the contents and to overwrite one of the js files and to hardcode the API key inside and compress it back to xpi but when I do that I'm getting error that the file is corrupt because when I change the file I'm breaking the add-on signing. I also tried to navigate to about:addons and put the code there in the preferences tab of the extension but I can't interact with input field for the API key. Is there a workaround for this? I went trough the code of the extension and I see that this key is saved in the extension local storage is there a way I can interact with this storage outside of the extension when I set up the browser driver? Any help will be appreciated. I'm using python-selenium 3.141.0

Hello, I'm trying to install firefox extension on selenium headless browser but I need to configure the extension to use an API key. The documentation of the extension says that I need to download the xpi file, extract the contents and to overwrite one of the js files and to hardcode the API key inside and compress it back to xpi but when I do that I'm getting error that the file is corrupt because when I change the file I'm breaking the add-on signing. I also tried to navigate to about:addons and put the code there in the preferences tab of the extension but I can't interact with input field for the API key. Is there a workaround for this? I went trough the code of the extension and I see that this key is saved in the extension local storage is there a way I can interact with this storage outside of the extension when I set up the browser driver? Any help will be appreciated. I'm using python-selenium 3.141.0

Ak chcete pridať odpoveď, musíte sa prihlásiť k svojmu účtu. Ak účet doteraz nemáte, položte novú otázku.