Assert the page title matches the given text.

def page_title(self, title):
    """
    Assert the page title matches the given text.
    """

    if world.browser.title != title:
        raise AssertionError(
            "Page title expected to be {!r}, got {!r}.".format(
                title, world.browser.title))