D
D
d999992020-10-21 20:24:50
Codeception
d99999, 2020-10-21 20:24:50

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

1 answer(s)
D
Daria Motorina, 2020-10-21
@d99999

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 question

Ask a Question

731 491 924 answers to any question