Codeception / Codeception/module-webdriver
Example of `executeAsyncJs()`
- Ngôn ngữ chính
- PHP
- Star
- 39
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.