src/Concerns/MakesAssertions.php
public function assertVisible($selector)
    {
        $fullSelector = $this->resolver->format($selector);

        PHPUnit::assertTrue(
            $this->resolver->findOrFail($selector)->isDisplayed(),
            "Element [{$fullSelector}] is not visible."
        );

        return $this;
    }
public function assertVisible($selector)
    {
        $fullSelector = $this->resolver->format($selector);

        PHPUnit::assertTrue(
            $this->resolver->findOrFail($selector)->isDisplayed(),
            "Element [{$fullSelector}] is not visible."
        );

        return $this;
    }
public function assertVisible ( $ selector ) { $ fullSelector = $ this -> resolver -> format ( $ selector ) ; PHPUnit :: assertTrue ( $ this -> resolver -> findOrFail ( $ selector ) -> isDisplayed ( ) , "Element [{$fullSelector}] is not visible." ) ; return $ this ; }
Assert that the element with the given selector is visible.

@param  string  $selector
@return $this
Assert that the element with the given selector is visible .