Log in and complete an OTP-verified transfer
Hard100 pts~2 min
- End-to-end flows
- Captcha handling
- Native dialogs
- Modals
- OTP
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.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Automate the full payment journey: log in with the captcha, transfer ₹12,500 to Priya Nair, accept the confirm dialog, verify with the OTP and check the reference number and the updated balance.
Your task
- 1Open TEST_URL and log in with 11223344 / Bank@2026 and the captcha read from #captcha-text.
- 2Click Fund transfer (#nav-transfer). Select Priya Nair (value BEN-102) in #transfer-beneficiary, type 12500 into #transfer-amount and Invoice 2211 into #transfer-remarks.
- 3Click Review transfer (#transfer-review), then Confirm & pay (#transfer-pay).
- 4Accept the browser confirm dialog “Transfer ₹12,500 to Priya Nair?”.
- 5In the OTP dialog (#otp-modal) type the demo OTP 482915 into #otp-input and click #otp-submit.
- 6Assert #transfer-success is shown, #transfer-reference reads FB-TXN-90017 and #transfer-balance-after shows ₹2,45,850.
Acceptance criteria
- The transfer succeeds with reference FB-TXN-90017.
- ₹12,500 was sent to Priya Nair.
- The savings balance after the debit is ₹2,45,850.
- The test makes at least three assertions along the journey.
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
Selenium WebDriver 4 · Selenium Challenges · FinBank