Want to run existing non headless scripts in headless Chrome
In my current project we want to migrate our scripts of normal web browser to run in headless chrome . Using the sample code for headless, I was able to navigate to a URL but after that we are getting object does not exist error (the same scripts work well in normal web browser).Anyone faced this issue while running scripts in headless mode. Any idea why this is happening?
Additional details : Test Complete Version used :15.0.379 ; Chrome Version 107
Thanks for your response. Actually i tried to run in headless chrome using https://smartbear.com/product/testcomplete/ site with the same chrome version(107) at that point i was able to achieve it. But the issue still persists with our application.
Also one observation , I was able to run the script if i kept the chrome open with the site in background..is this a expected behaviour in headless mode?