fix(Page.screenshot): prioritize screenshot type over filename extension (#1526)
fix(Page.screenshot): prioritize screenshot type over filename extension (#1526)

For the `page.screenshot` command, this patch starts prioritizing `options.type` option over the type inferred from `options.path`

Fixes #1492.

GoogleChrome/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer,GoogleChrome/puppeteer,GoogleChrome/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer