@@ -25,6 +25,8 @@ export default (options: Record<string, string>): Context => {
2525 let buildNameObj : string ;
2626 let allowDuplicateSnapshotNames : boolean = false ;
2727 let useLambdaInternal : boolean = false ;
28+ let useExtendedViewport : boolean = false ;
29+ let loadDomContent : boolean = false ;
2830 try {
2931 if ( options . config ) {
3032 config = JSON . parse ( fs . readFileSync ( options . config , 'utf-8' ) ) ;
@@ -100,6 +102,12 @@ export default (options: Record<string, string>): Context => {
100102 if ( config . useLambdaInternal ) {
101103 useLambdaInternal = true ;
102104 }
105+ if ( config . useExtendedViewport ) {
106+ useExtendedViewport = true ;
107+ }
108+ if ( config . loadDomContent ) {
109+ loadDomContent = true ;
110+ }
103111
104112 //if config.waitForPageRender has value and if its less than 30000 then make it to 30000 default
105113 if ( config . waitForPageRender && config . waitForPageRender < 30000 ) {
@@ -132,6 +140,8 @@ export default (options: Record<string, string>): Context => {
132140 requestHeaders : config . requestHeaders || { } ,
133141 allowDuplicateSnapshotNames : allowDuplicateSnapshotNames ,
134142 useLambdaInternal : useLambdaInternal ,
143+ useExtendedViewport : useExtendedViewport ,
144+ loadDomContent : loadDomContent ,
135145 } ,
136146 uploadFilePath : '' ,
137147 webStaticConfig : [ ] ,
0 commit comments