await page.get("chrome://extensions/")
    await asyncio.sleep(3)  # Wait for page to load

    # Click the first extension's "Details" button
    await page.evaluate("""
        let extensionsManager = document.querySelector('extensions-manager');
        console.log('Found extensions-manager:', extensionsManager);
        
        if (extensionsManager) {
            let managerShadow = extensionsManager.shadowRoot;
            let itemsContainer = managerShadow.querySelector('extensions-item-list');
            console.log('Found items container:', itemsContainer);
            
            if (itemsContainer) {
                let extensions = itemsContainer.shadowRoot.querySelectorAll('extensions-item');
                console.log('Found extensions:', extensions);
                
                if (extensions.length > 0) {
                    let firstExtension = extensions[0].shadowRoot;
                    let detailsButton = firstExtension.querySelector('[id="detailsButton"]');
                    console.log('Found details button:', detailsButton);
                    
                    if (detailsButton) {
                        detailsButton.click();
                        console.log('✅ Clicked first extension details button');
                    } else {
                        console.error('❌ Details button not found');
                    }
                } else {
                    console.error('❌ No extensions found');
                }
            } else {
                console.error('❌ No items container found');
            }
        }
    """)
    