Script working fine on MAC Chrome headless but throwing error on Linux Chrome headless

Hi Manpreet,

Can you please provide the changes you did to get the chrome headless to work?

thanks

@bhuvaneshwari.mahend The problem was with the resolution on Linux machine as it doesn’t have any resolution set, That issue can be fixed using :

WebUI.setViewPortSize(1360, 978)

Instead of

WebUI.maximizeWindow()

Thanks for sharing the fix. it now works.