Skip to content

Latest commit

 

History

History

javascript-injection

JavaScript Injection with Selenium, Puppeteer, and Marionette in Chrome and Firefox

JavaScript Injection with Selenium, Puppeteer, and Marionette in Chrome and Firefox benchmarks a variety of JavaScript injection methods to determine whether the injected code executes before or after code in the webpage being visited.

The test itself is defined in:

The direct Selenium, Puppeteer, and Marionette tests are defined in:

The Web Extension for script injection is then defined in the extension subdirectory.

The script for performing the extension test is then located in:

Finally, there is a test that uses mitmproxy to inject a script tag. This consists of two parts: