SingleFile icon indicating copy to clipboard operation
SingleFile copied to clipboard

TypeError: window.singlefile is undefined

Open scruel opened this issue 4 years ago • 3 comments

Describe the bug Could not save page and got TypeError.

To Reproduce Following command works fine: single-file https://www.baidu.com 1.html --back-end=webdriver-gecko --browser-headless=false

But not this: single-file https://baidu.com 1.html --back-end=webdriver-gecko --browser-headless=false Will got error:

TypeError: window.singlefile is undefined URL: https://baidu.com
Stack: undefined

Expected behavior A clear and concise description of what you expected to happen.

Environment

  • OS: Win10 Pro
  • Browser: Firefox 94
  • geckodriver v0.30.0

scruel avatar Nov 14 '21 03:11 scruel

I was not able to reproduce your issue, same OS, same Firefox version, geckodriver v0.30.0.

gildas-lormeau avatar Nov 14 '21 23:11 gildas-lormeau

I was not able to reproduce your issue, same OS, same Firefox version, geckodriver v0.30.0.

Are there any log files that I can provide to you, so you can debug on it?

scruel avatar Nov 15 '21 00:11 scruel

Note that Selenium is not really suited to SingleFile needs. If you want to use Firefox, you could install playwright with npm (it's not included by default because it's quite large) and use playwright-firefox as backend.

gildas-lormeau avatar Nov 21 '21 23:11 gildas-lormeau