public function FeatureContext::iCloseTheOpenTip in Open Social 8
Same name and namespace in other branches
- 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::iCloseTheOpenTip()
@When I close the open tip
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 799
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function iCloseTheOpenTip() {
$locator = 'a.joyride-close-tip';
$session = $this
->getSession();
$element = $session
->getPage()
->find('css', $locator);
if ($element === NULL) {
throw new \InvalidArgumentException(sprintf('Could not evaluate CSS selector: "%s"', $locator));
}
// Now click the element.
$element
->click();
}