4 ms·
A little OT, but how can I enable/use the Screenshots feature? I cannot find it.
by odabaxok 9y ago
A little OT, but how can I enable/use the Screenshots feature? I cannot find it.
- teamhappy 9y agoRight click -> Take a Screenshot
- magnetic 9y agoIs there a way to trigger a full screen screenshot via Selenium/WebDriver? (not a partial/window screenshot - that I can do)
- mcintyre1994 9y agoIf I'm understanding correctly, could you just select the body tag and screenshot that? In Selenium Python that'd be: # driver is a Firefox driver body = driver.find_element_by_tag_name('body') screenshot = body.screenshot_as_base64 # png bytes
- magnetic 9y agoJust tried this - doesn't seem to work: - a lot of (visible) elements are missing - the screenshot is still cropped to whatever viewport is used
- mcintyre1994 9y agoDefinitely just speculating here, but there is a `driver.save_screenshot(path)` method that would probably be worth trying. This worked for me: from selenium.webdriver import Firefox from selenium.webdriver.firefox.options import Options geckodriver_path = '/usr/local/bin/geckodriver' options = Options() options.add_argument('-headless') driver = Firefox(executable_path=geckodriver_path, firefox_options=options) url='https://news.ycombinator.com/item?id=16576015' driver.get(url) driver.save_screenshot('./hn.png')
- magnetic 9y agoFirefox has a screenshot feature that I'd like to trigger from Selenium, which is by going through the "..." icon in the URL bar which opens up a menu with its last item being "Take a screenshot" (and then you can select a full page screenshot). Is there a way to programmatically trigger this feature or sequence?
- blauditore 9y agoAlso, there are three dots next to the address bar, where it can be found.
- lizzard 9y agoIf you open that menu with the three dots, then control-click on the Screenshots menu item, you can add a Screenshot button to the address bar.
- odabaxok 9y agohttps://news.ycombinator.com/item?id=16576601 https://news.ycombinator.com/item?id=16576601
- Double_a_92 9y agoIt's the lowest item in the context menu when you rightclick anywhere on a website.
- mi100hael 9y agoI think that's been around for a while, right? It's under my right-click menu.
- odabaxok 9y agoI cannot see it there either. https://postimg.org/image/dexsmbvp9/ https://postimg.org/image/dexsmbvp9/
- rebelwebmaster 9y agoOn the right-hand side of the location bar, there's a Page actions menu (the 3 dots) which includes taking a screenshot.
- odabaxok 9y agoI cannot see it there. https://postimg.org/image/59fqo4pfx/ https://postimg.org/image/59fqo4pfx/
- i_cant_speel 9y agoAre you sure you've updated your browser? I have the option in that menu.
- odabaxok 9y agoSure, I have. This feature is there for a long time as of my understanding (since Quantum, maybe?). I have tried this feature when it was only in test pilot mode, but then I removed it (that was a long time ago). Can this be related? https://postimg.org/image/gw4g2vk3h/ https://postimg.org/image/gw4g2vk3h/
- rebelwebmaster 9y agoDid screenshots somehow get disabled? In about:config, check the value of the extensions.screenshots.disabled pref.
- odabaxok 9y agoNo it was never disabled. Also, I have tried to disable it and enable it again and restart the browser and similar things...
- rebelwebmaster 9y agoWeird. Maybe try filing a bug to see if someone who works on that feature has any other ideas. https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Screenshots https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&c...
- jgruen 9y agoHey, Screenshots person here...this is a new one to me. My only thoughts would be the pref flip that seems to be ruled out at this point, or that you're trying to shoot an about:[SOMETHING] page for which we disable screenshots. Otherwise, file an issue: https://github.com/mozilla-services/screenshots/issues https://github.com/mozilla-services/screenshots/issues We're triaging in an hour or so :)
- odabaxok 9y agoThanks and done: https://github.com/mozilla-services/screenshots/issues/4220 https://github.com/mozilla-services/screenshots/issues/4220