===============
Contextual Help
===============

The contextual help provides help screens for particular views. Let's first
log in however.

    >>> from zope.testbrowser.testing import Browser
    >>> manager = Browser()
    >>> manager.open('http://localhost/')
    >>> manager.getLink('Log In').click()
    >>> manager.getControl('Username').value = 'manager'
    >>> manager.getControl('Password').value = 'schooltool'
    >>> manager.getControl('Log in').click()

When we go to the person container, for example, we should be able to see
the help:

    >>> manager.getLink('Manage').click()
    >>> manager.getLink('Persons').click()
    >>> 'Context Help' in manager.contents
    True



In reality, you would now click on the link and a new window should open with
the content. Since our test-browser does not support Javascript, we have to do
this manually:

    >>> manager.open('http://localhost/persons/++help++/contexthelp.html')

    >>> print manager.contents
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ...<p>Use this page to browse and find individual persons.</p>...
