<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_alert(step, text):
 """ Check the alert text """


    try:
        alert = Alert(world.browser)
        assert_equals(alert.text, text)
    except WebDriverException:
        # PhantomJS is kinda poor
        pass