src/LinusShops/Contexts/Web.php
public function waitForSelectorVisibility($cssSelector, $attempts = 10, $waitInterval = 1)
    {
        $this->waitFor(function ($context) use ($cssSelector) {
            /** @var Web $context */
            try {
                $context->assertIsVisible($cssSelector);
            } catch (ExpectationException $e) {
                return false;
            }

            return true;
        }, $attempts, $waitInterval);
    }
public function waitForSelectorVisibility($cssSelector, $attempts = 10, $waitInterval = 1)
    {
        $this->waitFor(function ($context) use ($cssSelector) {
            /** @var Web $context */
            try {
                $context->assertIsVisible($cssSelector);
            } catch (ExpectationException $e) {
                return false;
            }

            return true;
        }, $attempts, $waitInterval);
    }
public function waitForSelectorVisibility ( $ cssSelector , $ attempts = 10 , $ waitInterval = 1 ) { $ this -> waitFor ( function ( $ context ) use ( $ cssSelector ) { /** @var Web $context */ try { $ context -> assertIsVisible ( $ cssSelector ) ; } catch ( ExpectationException $ e ) { return false ; } return true ; } , $ attempts , $ waitInterval ) ; }
Passes when the given css selector is visible on the page.

@Given /^selector matching "([^"]*)" is visible$/
Passes when the given css selector is visible on the page .