selenium

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

An exploration of different browser automation methods to inject JavaScript into webpages.

Continue reading

Making Chrome Headless Undetectable

Using MitmProxy and injected JavaScript feature mocks to bypass Headless Chrome detection tests.

Continue reading

Running Selenium with Headless Firefox

A look at connecting Selenium WebDriver to Firefox’s headless mode.

Continue reading

Running Selenium with Headless Chrome

A guide to setting up Selenium to work with the new headless functionality of Google Chrome.

Continue reading

Using Firefox WebExtensions with Selenium

A guide to launching Firefox with extensions preloaded using Selenium.

Continue reading

Using Google Chrome Extensions with Selenium

A simple guide to launching Google Chrome with extensions preloaded using Selenium.

Continue reading

Running Selenium with Headless Chrome in Ruby

A guide to setting up Selenium with Ruby to work with Google Chrome in headless mode.

Continue reading

How to Clear the Firefox Browser Cache With Selenium WebDriver/geckodriver

A utility function for clearing Firefox’s cache and cookies from Selenium without reinitializing the browser.

Continue reading

How to Clear the Chrome Browser Cache With Selenium WebDriver/ChromeDriver

A step-by-step guide to clearing the Chrome browser cache with Selenium.

Continue reading