【发布时间】:2015-04-19 18:27:33
【问题描述】:
所以字段的值应该是第一个选择的选项。
我看到问题就在这里
public function seeOptionIsSelected($select, $optionText)
{
$selected = $this->matchSelectedOption($select);
$this->assertDomContains($selected, 'selected option');
//If element is radio then we need to check value
$value = $selected->getNode(0)->tagName == 'option' ? $selected->text() : $selected->getNode(0)->getAttribute('value');
$this->assertEquals($optionText, $value);
}
【问题讨论】:
标签: codeception