I am working with PHP cURL/DOMDocument to scrape webpages. It works well, but I have some pages that loads the actual content after certain JS execution, In this scenario, the Xpath query returns null as it scraps the content from the target webpage before the JS execution.
How to make the CURL wait for few seconds before it starts the scraping?