Codeception / Codeception/module-webdriver
Example of `executeAsyncJs()`
- Linguagem predominante
- PHP
- Estrelas
- 39
- Forks
- 25
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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)
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.