src/LinusShops/Contexts/Web.php
public function click($cssSelector)
    {
        $element = $this->getElementByCssSelector($cssSelector);

        $this->assert($element != null, "{$cssSelector} not found on the page");

        $element->click();
    }
public function click($cssSelector)
    {
        $element = $this->getElementByCssSelector($cssSelector);

        $this->assert($element != null, "{$cssSelector} not found on the page");

        $element->click();
    }
public function click ( $ cssSelector ) { $ element = $ this -> getElementByCssSelector ( $ cssSelector ) ; $ this -> assert ( $ element != null , "{$cssSelector} not found on the page" ) ; $ element -> click ( ) ; }
Click the first element matching the given css selector.

@When /^I click the element matching "([^"]*)"$/
@When /^I click on "([^"]*)"$/

@param $cssSelector
@throws ExpectationException - if no matching elements found
Click the first element matching the given css selector .