serbanghita / selenium-setup-webdriver
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/serbanghita/selenium-setup-webdriver
Requires
- php: ^5.4||^7.0
- facebook/webdriver: 1.0.*
This package is auto-updated.
Last update: 2025-10-19 08:02:51 UTC
README
Selenium-Setup-Webdriver is used to test the Selenium-Setup service implementation.
It can also be used in testing environments, since it provides a WebDriver and WebDriverConfig factories.
It also comes with a BrowserTestCase that you can use by extending your test cases.
Install
Install Selenium-Setup
git clone https://github.com/bogdananton/Selenium-Setup.gitcd Selenium-Setupcomposer installphp selenium-setup start- will start the default Selenium server- Alternatively use
php selenium-setup register yourServerand changeyourServer.jsonto your needs.
- Alternatively use
Install Selenium-Setup-Webdriver
git clone https://github.com/serbanghita/Selenium-Setup-Webdriver.gitcd Selenium-Setup-Webdrivercomposer installphpunit -c phpunit.xml- will perform the checks from tests- Tinker with
phpunit.xmlif you want fast changes in your setup (proxy, selenium server, specific browser). Eg. connecting to a different Selenium host and port. - For extending your tests you need to override
setUpmethod fromBrowserTestCaseand use your custom webdriver settings or the predefined fromSeleniumSetupWebDriver\WebDriver\WebDriverFactory.
- Tinker with
Usage
Now that you have validated your environment setup, you have two options:
- Use
Selenium-Setup-Webdriveras a dependency in your test project. When writing tests, extendSeleniumSetupWebDriver\TestCase\BrowserTestCase. - Use your own web driver setup and connect to the server(s) raised by
Selenium-Setup.