Overview
The Reload step refreshes the current page, simulating the user clicking the browser’s refresh button or pressing F5/Cmd+R. Use it to test page refresh behavior, verify data persistence, or ensure the latest content is loaded.When to Use Reload
Use Reload when you need to:- Test data persistence: Verify that saved data survives a page refresh
- Clear form state: Reset unsaved form data to test “are you sure?” warnings
- Test real-time updates: Refresh to verify data updates correctly
- Verify session handling: Check that user sessions persist across page reloads
- Simulate user refresh: Test how your app handles unexpected refreshes
How It Works
Reload performs a full page refresh, just like clicking the browser’s refresh button. It reloads all resources (HTML, CSS, JavaScript), re-executes page scripts, and resets client-side state while preserving server-side session data. This is different from navigation - it refreshes the current URL rather than loading a new one.Real-World Examples
Testing Form Data Persistence
Testing Session Persistence
Testing Unsaved Data Warning
Testing Dynamic Content Refresh
Best Practices
Wait After Reload
- Add Wait for Element to ensure the page fully loads
- Wait for loading indicators to disappear
- Account for slower network connections
- Verify key elements are present before continuing
Consider State Loss
- Unsaved form data will be lost on reload
- Client-side state (like scroll position) resets
- Some apps show confirmation dialogs before reload
- Test both “stay on page” and “leave page” scenarios
Test Both States
Verify behavior both before and after reload:- Check data before reload to establish baseline
- Reload the page
- Verify what should persist (saved data, sessions)
- Verify what should reset (unsaved changes, temporary state)
Troubleshooting
Page Doesn’t Reload
Symptom: Reload step completes but page seems unchanged Solution:- Add Wait for Element to ensure reload completes
- Check network tab to verify page actually reloaded
- Look for browser caching issues
- Test manually to confirm reload behavior
Data Lost Unexpectedly
Symptom: Data that should persist is lost after reload Solution:- Verify data was actually saved before reload
- Check that server-side storage is working correctly
- Confirm session cookies are being set
- Test manually to isolate the issue
Auth Redirects
Symptom: Reload causes unexpected redirect to login Solution:- Verify session is properly established before reload
- Check session timeout settings
- Ensure cookies are being saved correctly
- Add Check URL after reload to verify location
Related Steps
- Navigate - Navigate to a specific URL (vs. reloading current URL)
- Go Back - Navigate to previous page
- Wait for Element - Wait for content after reload
- Check Text - Verify content after page refresh

