Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To screenshot an Indian bank webpage after OTP login, complete the bank’s normal, authorized login in a browser you control, navigate to the page you are allowed to document, then capture the visible page or its full scrollable contents. The screenshot call does not authenticate you or call a bank API. Because no bank or API is specified, the steps below are a general Playwright example—not confirmation that any bank permits browser automation.

First clarify what “with an API” means

An OTP login screen, an OTP service API, and a bank API that requires an authenticated session are different things. A screenshot API captures a webpage; it does not log you into online banking or provide access to a bank’s services.

For example, HDFC Bank’s API portal describes an OTP product with generation and validation APIs. Its documented flow sends an OTP to the customer’s registered mobile number and returns a token after validation for use in a subsequent API call. The portal presents this as customer validation with the bank’s platform and fintech partners; it does not establish that this is an internet-banking login API or the API intended by this question. See HDFC Bank API Portal.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A separate example is NPCI’s BASE service. Its December 19, 2024 circular describes a webpage flow in which a user provides an Aadhaar number, consents, enters a captcha, and completes OTP validation through UIDAI before BASE uses its API process to find linked bank-account information. That is not a general method for logging into net banking. See NPCI’s BASE API circular.

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth

The applicable authentication flow, API access, and automation rules depend on the particular bank, service, and environment. Identify those before adapting this example. RBI’s Authentication mechanisms for digital payment transactions Directions, 2025, dated September 25, 2025, state that digital payment transactions in India are required to meet two factors of authentication and list SMS OTP among possible factors. That regulatory requirement does not authorize browser automation or establish the login policy for a particular bank. See the RBI Directions.

Before automating: confirm permission and protect the account

  • Confirm that you are permitted to access and automate the specific page. Prefer a bank-approved sandbox and test credentials when available. Do not assume a production banking site permits automation.
  • Complete the bank’s normal OTP flow. Do not intercept, replay, generate, or bypass OTPs, CAPTCHAs, access controls, or other account protections.
  • Do not make a payment, transfer, or other account change just to obtain a screenshot. Use a safe, authorized page state or a test environment.
  • Before sharing an image, check for names, account numbers, balances, transaction identifiers, OTPs, and other personal or financial data. Mask what is not needed.
  • Treat both the screenshot and any saved authenticated browser state as sensitive. Limit access and retention, and delete them when they are no longer needed.

Capture the page with Playwright

Playwright can take a screenshot after you have completed login through the expected flow. The code below deliberately pauses for a person to complete the OTP step; it does not automate OTP entry. It assumes Node.js and Playwright are installed and that you have permission to use the target site this way. Playwright’s documented screenshot method is page.screenshot(); fullPage: true captures the full scrollable page. See Playwright’s screenshot documentation.

Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.

Install Playwright

  1. Install Node.js if it is not already available in your development environment.
  2. In a new project directory, run npm init -y, then npm install playwright.
  3. Install the browser binary with npx playwright install chromium.

Run a visible-browser capture

Save the following as capture.mjs. Replace the example URL with the authorized bank page. The script opens a visible Chromium window, waits for you to finish the normal login, and then saves a viewport screenshot and a full-page screenshot.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
import { chromium } from 'playwright';

const targetUrl = process.env.BANK_URL;
if (!targetUrl) {
  throw new Error('Set BANK_URL to the authorized bank page URL.');
}

const browser = await chromium.launch({ headless: false });
const context = await browser.newContext();
const page = await context.newPage();

try {
  await page.goto(targetUrl, { waitUntil: 'domcontentloaded' });
  console.log('Complete the bank login and OTP step in the browser.');
  console.log('Return to this terminal and press Enter when the target page is ready.');
  await new Promise((resolve) => process.stdin.once('data', resolve));

  await page.screenshot({ path: 'bank-page.png' });
  await page.screenshot({ path: 'bank-page-full.png', fullPage: true });
  console.log('Saved bank-page.png and bank-page-full.png');
} finally {
  await context.close();
  await browser.close();
}

Run it by setting the URL in your shell, for example BANK_URL='https://example.com/' node capture.mjs. Use the actual bank URL only after confirming that access and automation are allowed. The script waits for a terminal Enter after login so you can inspect the page before capture; it does not verify that login succeeded or that the page contains the intended information.

Rank #3
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.

Choose the capture extent

  • await page.screenshot({ path: 'bank-page.png' }) captures the current viewport.
  • await page.screenshot({ path: 'bank-page-full.png', fullPage: true }) captures the full scrollable page. Review the result carefully: a full-page image may include details below the visible area that you did not intend to retain or share.

For a manual capture instead, use the browser’s built-in screenshot facility after the authorized login. Manual capture avoids maintaining an automation script, while Playwright makes a permitted workflow repeatable. Neither method changes the bank’s access rules.

Session state: convenience with credential risk

You can complete OTP each run, or in an approved testing workflow save and reuse Playwright authentication state. Reusing state may reduce repeated login steps, but the file can contain sensitive cookies and headers that could impersonate you or your test account. Playwright warns about this risk and recommends keeping state files out of source control, for example in an ignored authentication directory. See Playwright’s authentication documentation.

Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.
  • Use saved state only when the bank and your organization permit it.
  • Restrict file permissions and storage access; do not commit the file to a repository or include it in shared artifacts.
  • Keep it only as long as necessary and remove it when finished. A saved session may expire or be invalidated by the bank, so do not assume it will remain usable.
  • Do not use stored state to evade an OTP prompt, access policy, or other security control.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If the page is publicly accessible and does not require an authenticated banking session, ScreenshotNeo can take the screenshot with one GET request. It cannot complete an OTP login or capture content that requires your authenticated bank session. Its screenshot API is at ScreenshotNeo; see the API documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Replace the sample target URL with a page you are authorized to capture. ScreenshotNeo accepts the request URL and returns a screenshot or PDF; do not send bank credentials, OTPs, or other sensitive authentication data to a screenshot service.

Best Value
HP 14 inch Laptop, 2027 Edition, Intel N150 CPU, 4GB RAM, 128GB SSD, 1TB Cloud Storage, Long Battery Life, Win 11 with Microsoft 365
  • 【Powerful Performance】Equipped with an Intel N150 CPU, featuring up to 4.4 GHz, ensuring efficient and powerful multitasking capabilities.
  • 【Versatile Connectivity】Stay connected with multiple ports including USB 3.0 Type-C, USB 3.0 Type-A, and a headphone/mic combo jack, with Wi-Fi and Bluetooth for seamless wireless networking.
  • Before capture, it accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the page verdict and billing status in headers.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents, including Claude, Cursor, and other MCP clients.
  • The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Every feature is available on every plan.

Sign up for ScreenshotNeo’s free plan to try it on pages that do not require a private banking session.

Troubleshooting

  • The browser never reaches the page: Check the target URL, network access, and whether the site requires navigation through its normal entry point. Do not try to defeat a block or access control; stop and consult the bank or your administrator.
  • The page is still at login after OTP: Verify manually that the bank accepted the normal login and that the expected page loaded before pressing Enter. The example script does not detect successful authentication.
  • The screenshot is blank or incomplete: Wait for the page to finish rendering and confirm the browser displays the content before capturing. Some pages update after initial navigation; do not add automation that submits account actions merely to force a page state.
  • The full-page screenshot is too long or exposes extra information: Use the viewport capture instead, or capture only a permitted, relevant page state using the browser’s normal interface. Inspect and redact the output before sharing.
  • Playwright cannot launch Chromium: Install the browser with npx playwright install chromium in the project environment and confirm the installation completed.
  • A saved session no longer works: The bank may have expired or invalidated the session. Follow the bank’s normal login flow again if authorized; never treat old state as a way around renewed authentication.

Frequently Asked Questions

Does this method bypass OTP?

No. You complete the bank’s normal OTP flow yourself in the visible browser; the example only captures the resulting page.

Can ScreenshotNeo screenshot a page that is behind my bank login?

No. The one-call example is for pages accessible to the API without your private authenticated bank session.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.