src/Browser/Page/Find/PageFinderBuilder.php
public function build()
    {
        $pageFinder = new PageFinder($this->browser);

        if ($this->isWithAssertions) {
            $pageFinder = new PageFinderWithAssertions($pageFinder);
        }

        if ($this->isWithWaits) {
            $pageFinder = new PageFinderWithWaits($pageFinder, $this->timeOutInSeconds);
        }

        return $pageFinder;
    }
public function build()
    {
        $pageFinder = new PageFinder($this->browser);

        if ($this->isWithAssertions) {
            $pageFinder = new PageFinderWithAssertions($pageFinder);
        }

        if ($this->isWithWaits) {
            $pageFinder = new PageFinderWithWaits($pageFinder, $this->timeOutInSeconds);
        }

        return $pageFinder;
    }
public function build ( ) { $ pageFinder = new PageFinder ( $ this -> browser ) ; if ( $ this -> isWithAssertions ) { $ pageFinder = new PageFinderWithAssertions ( $ pageFinder ) ; } if ( $ this -> isWithWaits ) { $ pageFinder = new PageFinderWithWaits ( $ pageFinder , $ this -> timeOutInSeconds ) ; } return $ pageFinder ; }
Creates and returns a new PageFinder object according to the current builder state.

@return PageFinderInterface
Creates and returns a new PageFinder object according to the current builder state .