Codeception / Codeception/module-webdriver
Example of `executeAsyncJs()`
- Vorherrschende Sprache
- PHP
- Sterne
- 39
- Forks
- 25
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.