/** * @When 點選「還書」按鈕 */ public function clickReturnButton() { $button = $this->currentBookNode->findButton('還書'); $button->click(); }
/** * @Given /^(collection "[^"]*") should have "([^"]*)" button$/ */ public function collectionShouldHaveButton(NodeElement $collection, $buttonName) { expect($collection->findButton($buttonName))->toNotBeNull(); }