After following the initial guide, I discovered that I can execute a JavaScript snippet using driver.execute(). But how can I run external JavaScript files that load additional modules themselves?
I've brainstormed some potential solutions:
Combine all necessary files into one large file, convert it to a string, and then run it with driver.execute(). Possibly utilizing a minifier tool.
Use a small snippet to dynamically load all required JS files.
Possibly alter the HTML before it is rendered by the browser?
Any suggestions or alternative approaches?