Load more feed posts behind a spinner
- Explicit waits
- Lazy loading
- Element counts
A professional network: a 3-step sign-up wizard, a feed with likes, comments and lazy-loaded posts, a notifications dropdown, a messaging drawer with auto-replies, job search with filters and a multi-step Easy Apply modal, member profiles with connect/withdraw, a skills tag input and company pages that open a careers site in a new tab.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
The feed shows 5 posts and loads 5 more each time “Show more posts” is clicked, after a two-second spinner. Load the whole feed without fixed sleeps and verify all 13 posts and the end-of-feed message.
Your Task
- 1Open TEST_URL (you are already signed in) and assert the feed shows 5 posts ([data-testid="post"]).
- 2Click “Show more posts” (#show-more-posts), wait for the spinner (#feed-loading) to finish and assert 10 posts are shown.
- 3Click #show-more-posts again and wait until 13 posts are shown.
- 4Assert #feed-end reads “You've reached the end of your feed” and #show-more-posts is no longer displayed.
Validation Checks
- All 13 posts are loaded.
- The end-of-feed message is shown and the button is gone.
- The test uses no fixed sleeps.
Constraints
- Do not use fixed sleeps — wait for the post count or the spinner to change.
Fixtures
- alex@connectin.test
- Password
- Connect@2026
- Account name
- Alex Morgan
- Password rules
- 8+ characters with an uppercase letter, a number and a special character
- Locations
- Bengaluru, India · Berlin, Germany · London, UK · New York, US · Toronto, Canada
- Featured company
- Northwind Labs (#/company/northwind-labs)
Cloud Execution & Grading Guide
This Medium Selenium Challenges exercise runs inside TargetQA's managed cloud sandbox using Selenium WebDriver 4 (Java, Python, C#). Every submission runs inside an isolated headless Chromium container with pre-synced drivers, capturing live console logs, DOM assertions, and a 720p step-by-step video replay.
- Supported stacks: Java (Selenium 4 + JUnit 5) · Python (Selenium 4 + pytest) · C# (Selenium 4 + NUnit)
- Zero local setup: Use the pre-declared
TEST_URLvariable so your script targets the live ConnectIn sandbox reliably without hardcoding hosts. - Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 3 acceptance checks and earn 50 points.
Selenium WebDriver 4 · Selenium Challenges Practice Track · ConnectIn