'Returns the text of the element.'

def _getElementText(self, element=None):

    if (element is None):
        element = self.elements[self.showingPage]
    (reqhead, reqbody, httpResp) = element
    if (httpResp is not None):
        title = ('Id:    %d' % httpResp.id)
        resphead = httpResp.dump_response_head()
        respbody = httpResp.get_body()
    else:
        title = 'Error:    No    HTTP    response    was    found.'
        resphead = ''
        respbody = ''
    alltexts = (reqhead, reqbody, resphead, respbody)
    realtext = ('\n'.join((x for (x, y) in zip(alltexts, self.showText) if y)) + '\n')
    return (title, realtext)
