5651 次
1 に答える
3
すべてのオプションを選択するコードを含むメソッド内に、必要な個々のステップを実行する PHP コードを記述する必要があります。
例えば:
$handler = $this->getSession()->getSelectorsHandler();
$optionElements = $this->getSession()->getPage()->findAll('named', array('option', $handler->selectorToXpath('css', 'select ));
foreach ($optionElements as $optionElement) {
$this->getSession()->getPage()->selectFieldOption('portal', $optionElement->getValue());
$this->pressButton("show");
$this->assertPageContainsText(" - Report Report");
}
于 2013-05-21T16:37:05.477 に答える