Is asynchronous embed code swap with Python and Selenium/Selenium-wire possible?

32 views Asked by At

I'm trying to programmatically replace an Adobe Experience Platform tag embed code in the head of a website loaded in my browser. I can do this manually via the Adobe Experience Platform Debugger browser extension, but I need to do this automatically for automated testing.

This is in the head of the webpage (unique data replaced with ellipsis):

<script src="//assets.adobedtm.com/.../launch-....min.js" async></script>

I want to be able to change the source to a different URL. Is that even possible? Would a request interceptor work?

0

There are 0 answers