I used protractor a long time, install django and update python in Mac OS X (Mavericks), after this:
browser.wait(function(){ element.isPresent() }); 
does not work properly and show the message above:
Message:
    Error: Wait timed out after 270ms
   Stacktrace:
    Error: Wait timed out after 270ms
    at Array.forEach (native)
    at runMicrotasksCallback (node.js:337:7)
    at process._tickCallback (node.js:355:11)
From: Task: < anonymous wait >
How could I fix this?
 
                        
There is at least one problem with your custom wait function is that you don't have a
return. But, anyway, there is apresenceOfbuilt-inExpectedConditionthat fits your use case: