【发布时间】:2015-11-19 08:16:14
【问题描述】:
我正在为 symfony 编写功能测试,但在页面上发送表单时遇到问题,没有任何保存按钮,只有自动保存功能。
通常我首先找到保存按钮,用数据填写表单然后保存
// find the add button
$saveButton = $crawler->filter('button.btn-save');
// fill the form with data and submit
$form = $saveButton->form();
// submit empty form
$crawler = $client->submit($form);
谢谢!
【问题讨论】:
标签: php symfony testing web-crawler autosave