public function testIFollowTheLinkShouldThrowExceptionIfElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('a.test'); $this->context->iFollowTheLink('User Link'); }
public function testIFollowTheLinkShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->iFollowTheLink('User'); }