Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcmatters/chrome-tester
https://github.com/mcmatters/chrome-tester
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcmatters/chrome-tester
- Owner: MCMatters
- Created: 2018-03-08T09:19:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T10:11:19.000Z (over 4 years ago)
- Last Synced: 2024-04-26T10:22:41.405Z (9 months ago)
- Language: PHP
- Size: 27.7 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Chrome Tester
Simple wrapper over chrome web driver.
### Installation
```bash
composer require mcmatters/chrome-tester --dev
```### Usage
```php
getChromeDriver();$site = $chrome->get('https://google.com');
$site->findElement(WebDriverBy::cssSelector('input[name=q]'))
->clear()
->sendKeys('Test');$site->findElement(WebDriverBy::cssSelector('form'))->submit();
echo $site->getPageSource();
```