src/Concerns/InteractsWithMouse.php
public function click($selector = null)
    {
        if (is_null($selector)) {
            (new WebDriverActions($this->driver))->click()->perform();
        } else {
            $this->resolver->findOrFail($selector)->click();
        }

        return $this;
    }
public function click($selector = null)
    {
        if (is_null($selector)) {
            (new WebDriverActions($this->driver))->click()->perform();
        } else {
            $this->resolver->findOrFail($selector)->click();
        }

        return $this;
    }
public function click ( $ selector = null ) { if ( is_null ( $ selector ) ) { ( new WebDriverActions ( $ this -> driver ) ) -> click ( ) -> perform ( ) ; } else { $ this -> resolver -> findOrFail ( $ selector ) -> click ( ) ; } return $ this ; }
Click the element at the given selector.

@param  string|null  $selector
@return $this
Click the element at the given selector .