Laravel - Browser Tests - Waiting For Text

The waitForText method may be used to wait until the given text is displayed on the page:

    
    // Wait a maximum of five seconds for the text...
    $browser->waitForText('Hello World');
    
    // Wait a maximum of one second for the text...
    $browser->waitForText('Hello World', 1);
	

You may use the waitUntilMissingText method to wait until the displayed text has been removed from the page:

    
    // Wait a maximum of five seconds for the text to be removed...
    $browser->waitUntilMissingText('Hello World');
    
    // Wait a maximum of one second for the text to be removed...
    $browser->waitUntilMissingText('Hello World', 1);