Selenium WebDriver 4

Log out through the confirmation dialog

Easy30 pts
  • Modals
  • Confirmation dialogs
  • Visibility
Practice app · FinBank

A retail net-banking portal: captcha-protected login, an accounts dashboard with masked balances, a sortable and paginated transactions table, beneficiary management, OTP-verified fund transfers behind a native confirm, a session-timeout warning and statements that open in a new tab.

Test URL
/lab/selenium-finbank-logout-confirmation

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

Objective

Log out of FinBank: confirm in the logout dialog and verify the customer lands on the login page with a logged-out message.

Your Task

  1. 1Open TEST_URL. You are already logged in and on the dashboard.
  2. 2Click Log out (#logout-button) and assert the dialog #logout-modal asks “Log out of FinBank?”.
  3. 3Click Log out (#logout-confirm) in the dialog.
  4. 4Assert the dialog closed, the login form (#login-form) is shown and #logout-message says you have been logged out.

Validation Checks

  • The logout dialog is closed.
  • The login form is shown.
  • The logged-out message is displayed.
  • The test makes at least two assertions.

Fixtures

Customer ID
11223344
Password
Bank@2026
Customer name
Neha Sharma
Captchas
Rotate through 7KQ2X → M4P9T → R8W3N → H2D6Y → B5V7L → P3J8C (always read the current one from #captcha-text)
OTP
482915
Savings balance
₹2,58,350 (account XXXX XXXX 4821)
Current balance
₹3,42,100 (account XXXX XXXX 7390)
Beneficiaries
BEN-101 Rahul Mehta · BEN-102 Priya Nair · BEN-103 Kavya Iyer
IFSC format
4 letters + 0 + 6 letters or digits, e.g. FINB0001234
First transfer reference
FB-TXN-90017
Statement ID
Shown only on the statement tab

Cloud Execution & Grading Guide

This Easy 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 FinBank 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 30 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · FinBank