Answer the question
In order to leave comments, you need to log in
Codeception how to enter data in search box?
[TypeError] Argument 1 passed to Symfony\Component\DomCrawler\FormFieldRegistry::get() must be of the type string, null given, called in /home/local/DO/andrii.kozar/myProject/codsept/vendor/symfony/ dom-crawler/Form.php on line 340
Can't enter data into input , writes
$I->fillField('.search-form #search', 'house');
<div class="search-holder">
<input id="search" type="text">
<button><a onclick="checkSearch('search'); return false;"><i class="icon-search"></i></a></button>
</div>
Answer the question
In order to leave comments, you need to log in
It is enough to enter #search into the selector, you do not need to specify the search-form class
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question