Laravel - Browser Tests - Assert Script

Assert that the given JavaScript expression evaluates to the given value:

    
    $browser->assertScript('window.isLoaded')
            ->assertScript('document.readyState', 'complete');