Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/punktde/codeception-webdriver


https://github.com/punktde/codeception-webdriver

codeception

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# punktde/codeception-webdriver

## Gherkin Steps and additional module functions for the Codeception Webdriver module

### How to use

#### Additional module to store text and compare it later

Use the module `PunktDe\Codeception\Webdriver\Module\Storage` in your `codeception.yaml`:

```yaml
modules:
enabled:
- PunktDe\Codeception\Webdriver\Module\Storage
```

#### Gherkin steps

You can either use the trait `PunktDe\Codeception\Webdriver\ActorTraits\Webdriver` in your testing actor, which will add browser controls, checkers, cookie functions and functions
to switch between frames or windows. Or if you only need some of the functionality you can use these specific traits:

* `PunktDe\Codeception\Webdriver\ActorTraits\Checks`
* `PunktDe\Codeception\Webdriver\ActorTraits\Controls`
* `PunktDe\Codeception\Webdriver\ActorTraits\Cookie`
* `PunktDe\Codeception\Webdriver\ActorTraits\Switchers`

The trait to use the storage module is all by itself, you have to include that even if you included the complete `PunktDe\Codeception\Webdriver\ActorTraits\Webdriver` trait.

##### Example actor

```php