功能测试$form = $crawler->selectButton('input[type=submit]')->form();
失败
当前节点列表为空
源代码:
<form action="/household/_search" class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" name="qtext" method="get" class="form-control" placeholder="Full name or ID">
</div>
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
</form>
结果与以下内容相同:
selectButton('.btn')
filterXPath('span[@class="glyphicon glyphicon-search"]')
filter('navbar-form')
filter('.btn')
filter('input[type="submit"]')
filter('input[type=submit]')
什么是正确的选择器?