Forrest logo
back to the pageres tool

pageres:tldr:b5af1

pageres: Capture a specific element on a page.
$ pageres ${https:--example-com-} ${1366x768} --selector='${-page-header}'
try on your machine

This command is using the Pageres tool to take a screenshot of a webpage. Here's the breakdown:

  • pageres: This is the command used to run the Pageres tool.
  • ${https:--example-com-}: This is the URL of the webpage you want to take a screenshot of. In this case, it is "https://example.com".
  • ${1366x768}: This specifies the resolution for the screenshot. In this case, it is set to a width of 1366 pixels and a height of 768 pixels.
  • --selector='${-page-header}': This flag tells Pageres to capture a specific element of the webpage identified by the CSS selector "-page-header". The "-page-header" is using the CSS selector syntax (usually class or ID) to target a specific element on the page for the screenshot.

Overall, this command is taking a screenshot of the webpage at "https://example.com" with a resolution of 1366x768 and specifically capturing the element identified by the CSS selector "-page-header".

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pageres tool