lib/Dhalang/puppeteer.rb in Dhalang-0.6.3 vs lib/Dhalang/puppeteer.rb in Dhalang-0.6.4
- old
+ new
@@ -3,19 +3,20 @@
class Puppeteer
NODE_MODULES_PATH = Dir.pwd + '/node_modules/'.freeze
private_constant :NODE_MODULES_PATH
USER_OPTIONS = {
- navigationTimeout: 10000,
- navigationWaitUntil: 'load',
- navigationWaitForSelector: '',
- navigationWaitForXPath: '',
- userAgent: '',
- isHeadless: true,
- viewPort: '',
- httpAuthenticationCredentials: '',
- isAutoHeight: false,
- chromeOptions: []
+ navigationTimeout: 10000,
+ printToPDFTimeout: 0, # unlimited
+ navigationWaitUntil: 'load',
+ navigationWaitForSelector: '',
+ navigationWaitForXPath: '',
+ userAgent: '',
+ isHeadless: true,
+ viewPort: '',
+ httpAuthenticationCredentials: '',
+ isAutoHeight: false,
+ chromeOptions: []
}
private_constant :USER_OPTIONS
DEFAULT_PDF_OPTIONS = {
scale: 1,