public function testIFillInTheFieldWithShouldThrowExceptionIfElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('input[name=first_name]'); $this->context->iFillInTheFieldWith('User Name', 'test value'); }
public function testIFillInTheFieldWithShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->iFillInTheFieldWith('does not exist', 'test'); }