Answer the question
In order to leave comments, you need to log in
How to fix sendAjaxPostRequest() behavior?
Hello. I am writing a functional test under YII2, to "click" on the button I use sendAjaxPostRequest():
$I->sendAjaxPostRequest('/some/action', ['id' => $id]);
$I->amOnPage('/');
$I->seeElement('body');
Test tests\functional\myСest.php:tryToTest
Step See element "body"
Fail Element located either by name, CSS or XPath element with 'body' was not found.
"<!DOCTYPE html>\r\n<html lang=\"ru-RU\">\r\n <head>\r\n <meta charset=\"UTF-8\">\r\n... "
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question