Codeception / Codeception/module-webdriver
Example of `executeAsyncJs()`
- Lingua principale
- PHP
- Stelle
- 39
- Fork
- 25
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a case in which I request a API call via fetch/XHR (in execute async js method) grab its response and want to check that its response contains specific string.
Example:
```php
$response = $I->executeAsyncJS(<<assertContains('needle', $response);
```
I have made several attempts but unable to achieve the desired result. Sometimes I get errors or sometime empty array `[]`
It would be glad if such example is provided.
Note that there is also a [unanswered question on Stack Overflow](https://stackoverflow.com/questions/60108844/get-a-response-from-codeception-i-executeasyncjs)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.