public function testISelectFromTheSelectorShouldThrowExceptionIfElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('select'); $this->context->iSelectFromTheSelector('Female', 'User Gender'); }
public function testISelectFromTheSelectorShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->iSelectFromTheSelector('value', 'does not exist'); }