Download the PHP package itnelo/reactphp-webdriver without Composer
On this page you can find all versions of the php package itnelo/reactphp-webdriver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package reactphp-webdriver
ReactPHP WebDriver
This is a direct port of RemoteWebDriver logic from the php-webdriver/webdriver package, which utilizes ReactPHP event loop and promise API for browser interaction w/o execution flow blocking.
Selenium WebDriver is a software that is used to manipulate browsers from the code (primarily, for testing and web scraping). You can find more here: https://selenium.dev.
This PHP client sends async HTTP requests to the Grid. It is a central endpoint for commands, a bridge between your code and browser instances. See SeleniumHQ/docker-selenium to get your own remote browser (or a cluster).
Enjoy!
Requirements
- PHP 7.4 or higher.
- ReactPHP v1 (http ^1, stream ^1).
- Symfony conflicts: 5.1 (or newer) environments are preferred; the package uses (and will use) some components from there, and their code / version constraints may need a review, to include a wider range of supported environments (otherwise, you need to adjust your platform).
Installation
With composer:
How to use
Call a factory method to get your instance (recommended). The minimal configuration is:
You can customize a set of parameters for the underlying ReactPHP Browser and tune driver options:
Manual configuration (if you prefer to configure each component as a separate service, e.g. compiling a DI container and want to reuse existing service definitions):
See a self-documented ClientInterface.php) for the API details. Not all methods and arguments are ported (only the most necessary), so feel free to open an issue / make a pull request if you want more.
See also
- php-webdriver/webdriver — the original, "blocking" implementation;
to get information how to use some advanced methods. For example, WebDriverKeys
helper describes Unicode strings for sending special inputs to page elements (e.g.
Ctrl
,Alt
and other keys).
Changelog
All notable changes to this project will be documented in CHANGELOG.md.
All versions of reactphp-webdriver with dependencies
react/http Version ^1.2
react/promise Version ^2.8
react/promise-timer Version ^1.6
react/stream Version ^1.1
symfony/options-resolver Version ^5.1