Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pazakharov/yii2-selenium-tools
SeleniumTools provide usefull utils for use selenium-webdriver with php.
https://github.com/pazakharov/yii2-selenium-tools
antidetect chrome php-webdriver selenium selenium-stealth yii2 yii2-extension
Last synced: about 2 months ago
JSON representation
SeleniumTools provide usefull utils for use selenium-webdriver with php.
- Host: GitHub
- URL: https://github.com/pazakharov/yii2-selenium-tools
- Owner: pazakharov
- License: mit
- Created: 2022-07-21T17:55:44.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-28T04:50:08.000Z (about 2 years ago)
- Last Synced: 2024-11-13T10:59:33.612Z (3 months ago)
- Topics: antidetect, chrome, php-webdriver, selenium, selenium-stealth, yii2, yii2-extension
- Language: HTML
- Homepage:
- Size: 215 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Yii2 Selenium tools
## Install
- Add to composer.json repository
```json
"repositories": [
...// any other repositories
{
"type": "vcs",
"url": "[email protected]:pazakharov/yii2-selenium-tools.git"
}
...// any other repositories
]
```
- install via composer or add record to composer.json
```bash
composer require pazakharov/yii2-selenium-tools
```
- configure module to yii2 application acording to example configuration
```php
[
// ... other app config
'modules' => [
'seleniumTools' => [
'class' => \Zakharov\Yii2SeleniumTools\SeleniumToolsModule::class,
'screenshotPath' => '@app/runtime/screenshots',
'defaultChromeBinary' => env('CHROME_BINARY_PATH', null),
'defaultWebdriverBinary' => env('CHROME_DRIVER_EXECUTABLE', null),
'params' => [
'headless' => false,
'profilesDirectory' => '@app/runtime/profiles',
'chromeDriverPortMin' => env('CHROME_DRIVER_PORT_MIN', null),
'chromeDriverPortMax' => env('CHROME_DRIVER_PORT_MAX', null),
'executorConnectionTimeoutMs' => env('CHROME_EXECUTOR_CONNECTION_TIMEOUT_MS', 120000),
'executorRequestTimeoutMs' => env('EXECUTOR_REQUEST_TIMEOUT_MS', 120000),
'PageLoadTimeTimeoutS' => env('PAGE_LOAD_TIME_TIMEOUT_S', 120),
]
]
],
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
'@vendor/pazakharov/yii2-selenium-tools/Src/migrations'
],
]
]
]
```## Contributing and develop this project
- Code format rules based on PSR-12 ./phpcs.xml
- In order to run test you should run migrations
```bash
.\vendor\bin\yii migrate/up --appconfig=Tests/config/yii2.php
```