0

How to include more than one element in hideElements argument in screenshot function?

For one element:

phantomcss.screenshot(target, timeOut, "div.page", fileName);
Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Ayoub Abid
  • 432
  • 5
  • 15

1 Answers1

0

You can use any jQuery selector as seen in the code. jQuery supports the comma operator that you should know from CSS selectors. Example:

phantomcss.screenshot(target, timeOut, "div.page, span.smth, .advertisement", fileName);

If you're unsure, just take a peek in the source code. That's the beauty of open source projects.

Artjom B.
  • 61,146
  • 24
  • 125
  • 222