PHPackages                             lencls37/php-selenium - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. lencls37/php-selenium

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lencls37/php-selenium
=====================

Selenium PHP library with automatic Chrome/ChromeDriver setup

00PHP

Since Oct 16Pushed 7mo agoCompare

[ Source](https://github.com/lencls37/php-selenium)[ Packagist](https://packagist.org/packages/lencls37/php-selenium)[ RSS](/packages/lencls37-php-selenium/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

PHP Selenium Driver
===================

[](#php-selenium-driver)

Selenium PHP library with automatic Chrome/ChromeDriver setup and multi-browser support.

Features
--------

[](#features)

- 🚀 Automatic Chrome/Chromium detection and installation
- 📦 Automatic ChromeDriver download and setup
- 🌐 Cross-platform support (Windows, Linux, macOS)
- 🔧 Firefox/Gecko driver support
- 💬 Interactive installation prompts
- ⚡ Version matching between browser and driver
- 🎮 **Full browser automation** - Control the browser like Selenium
- 🔍 **Element finding** - CSS selectors, XPath, ID, name, class, etc.
- 🖱️ **Element interaction** - Click, type, submit forms, get properties
- 📸 **Screenshots** - Full page and element screenshots
- 🍪 **Cookie management** - Add, get, delete cookies
- 🪟 **Window &amp; Frame control** - Resize, maximize, switch windows/frames
- 🚨 **Alert handling** - Accept, dismiss, get text from alerts
- ⌨️ **Actions API** - Advanced keyboard and mouse interactions
- ⏱️ **Smart waits &amp; Timeouts** - Wait for elements, conditions, and configure timeouts
- 🎯 **JavaScript execution** - Run custom scripts (sync &amp; async)
- 🔍 **Session management** - Get status, list sessions, manage capabilities
- 🥷 **Stealth mode** - Hide Selenium from bot detection (enabled by default)

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- ext-zip
- ext-json
- Composer

Installation
------------

[](#installation)

```
composer require lencls37/php-selenium
```

Or clone this repository and run:

```
composer install
```

Usage
-----

[](#usage)

### Quick Start - Browser Automation

[](#quick-start---browser-automation)

```
