を得ることができない私のHTMLは、私は、クローラを使用して自分のフォームを取得したいsymfonyのクローラselectButton方法はこちらのフォーム
<form name="station" method="post" action="/stations/new" role="form">
<div class="form-group">
<label class="control-label required" for="station_name">Name</label>
<input type="text" id="station_name" name="station[name]" required="required" maxlength="255" class="form-control" >
</div>
<div class="form-group">
<div class="checkbox">
<label for="station_active">
<input type="checkbox" id="station_active" name="station[active]" value="1" />Active</label>
</div>
</div>
<div class="form-group">
<button type="submit" id="station_submit" name="station[submit]" class="btn btn-primary">Ajouter</button>
</div>
<input type="hidden" id="station__token" name="station[_token]" class="form-control" value="aze123aze" >
</form>
です。私はこの
$form = $crawler->selectButton('station[submit]')->form(array());
ようselectButton方法を試してみましたが、私はエラーを取得:InvalidArgumentException: The current node list is empty.
問題は何ですか?
私はかなり遅れており、$ client-> click($ link)の後にクローラを忘れました。 ...あなたはまだあなたの投票を得て、答えを受け入れる:P – RomMer