Selenium WebDriver 4

Archive a card from the context menu and undo it

Medium55 pts
  • Context menus
  • Toasts
  • Explicit waits
  • Transient UI
Practice app · TaskBoard

A team kanban board: sign-in, four columns with WIP limits, a create-card dialog, pointer-based drag and drop, inline title editing, a right-click card menu with archive and undo, delete confirmation, search, keyboard shortcuts, a native reset confirm and an activity log.

Test URL
/lab/selenium-taskboard-archive-undo

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Right-click a card to archive it, catch the short-lived “Card archived” toast, click Undo, and wait for the card to be restored without fixed sleeps.

Your Task

  1. 1Open TEST_URL (you are already signed in).
  2. 2Right-click card TB-102 “Write release notes” to open the context menu #card-menu, then click #menu-archive.
  3. 3Assert the card disappears from the board and the toast #archive-toast shows “Card archived”.
  4. 4Click #undo-archive before the toast expires (it stays for 5 seconds).
  5. 5Wait for the restore to finish: the card is back in To Do, the toast is gone and #activity-log contains “Restored ‘Write release notes’”.

Validation Checks

  • Card TB-102 is back in the To Do column.
  • The archive toast has closed.
  • The activity log records both the archive and the restore.
  • The test uses no fixed sleeps.

Constraints

  • Do not use fixed sleeps. Wait for the toast and for the restored card.

Fixtures

Email
lead@taskboard.test
Password
Board@2026
Signed-in member
Maya Lin (Project lead)
Board
Website Relaunch, 11 cards (TB-101 to TB-111); new cards get TB-112, TB-113…
Today’s date
Tuesday 10 November 2026 (due dates are relative to it)
Team
Maya Lin, Diego Alvarez, Priya Nair, Sam Okafor, Lena Fischer

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_URL variable so your script targets the live TaskBoard sandbox reliably without hardcoding hosts.
  • Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 4 acceptance checks and earn 55 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · TaskBoard