Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcmatters/chrome-tester


https://github.com/mcmatters/chrome-tester

Last synced: about 1 month ago
JSON representation

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();
```