🕵️ rebrowser-bot-detector

Modern tests to detect automated browser behavior. See github repo for more details. How to properly run the tests?

These tests are designed for Chromium based browsers only.

To properly trigger all the tests you need to add the code below to your automation script and open this page again.

                /* puppeteer & playwright */
                // dummyFn - must be called in the main context
                await page.evaluate(() => window.dummyFn())
                
                // exposeFunctionLeak
                await page.exposeFunction('exposedFn', () => { console.log('exposedFn call') })
                
                // sourceUrlLeak
                await page.evaluate(() => document.getElementById('detections-json'))
                
                // mainWorldExecution - must be called in an isolated context
                /* puppeteer */
                await page.mainFrame().isolatedRealm().evaluate(() => document.getElementsByClassName('div'))
                
                /* 
                playwright - there is no way to explicitly evaluate script in an isolated context
                follow rebrowser-patches on github for the fix
                */
                await page.evaluate(() => document.getElementsByClassName('div'))
            
Test name Time since load Notes

JSON