我在选择下拉菜单中的选项时遇到问题。我检查了文档,发现了这个:
这是我的代码:
$browser
->visit('/my-slug')
//version from the doc ==> not working
->select('Choose your type', 'visitor)
//version with the name attribute ==> not working
->select('User[type]', 'visitor')
;
Run Code Online (Sandbox Code Playgroud)
当我选择用户类型时,屏幕上会出现另一个表格,以便我可以写入我的个人信息。
你有什么主意吗?