src/Services/WaitForElement.php
protected function waitForElementWithId($id, $timeout = 2000)
    {
        try {
            $this->waitForElement('Id', $id, $timeout);
        } catch (\Exception $e) {
            throw new CannotFindElement("Can't find an element with an ID of "
                .$id.' within the time period of '.$timeout.' miliseconds');
        }

        return $this;
    }
protected function waitForElementWithId($id, $timeout = 2000)
    {
        try {
            $this->waitForElement('Id', $id, $timeout);
        } catch (\Exception $e) {
            throw new CannotFindElement("Can't find an element with an ID of "
                .$id.' within the time period of '.$timeout.' miliseconds');
        }

        return $this;
    }
protected function waitForElementWithId ( $ id , $ timeout = 2000 ) { try { $ this -> waitForElement ( 'Id' , $ id , $ timeout ) ; } catch ( \ Exception $ e ) { throw new CannotFindElement ( "Can't find an element with an ID of " . $ id . ' within the time period of ' . $ timeout . ' miliseconds' ) ; } return $ this ; }
Helper method to wait for an element with the specified id.

@param $id
@param int $timeout

@throws CannotFindElement

@return $this
Helper method to wait for an element with the specified id .