Search code examples
pythonseleniumautomationwebdriver

It's possible to do an XHR call and render the output with Selenium?


Well, the title says it all... It is possible to perform an XmlHttpRequest from Selenium/Webdriver and then render the output of that requests in a browser instance ? If so, can you enlight me please ?


Solution

  • One option would be to make the XHR request using, for instance, requests, save the response to a file and get() it with selenium webdriver instance (How to use selenium webdriver on local (on my pc) webpage instead of locate somwhere on www?).