/**
     * Tests, that wait method returns $conditionResult.
     */
    public function testWaitReturnFalse()
    {
        $connection = $this->api->getConnection();

        $connection
            ->expects($this->any())
            ->method('evaluateJavascript')
            ->with('not-found-element')
            ->will($this->returnValue(false));

        $this->assertFalse($this->api->wait(500, 'not-found-element'));
    }