Browser automation can enter information and upload documents in a web portal, but that does not mean the agency permits it—or that a successful click completes a filing. First identify the exact portal and jurisdiction, read the agency’s current rules, and use an official API or agent route if one is provided. Only automate a browser workflow when the agency allows it and the account owner has authorized the access.
Can you automate filing through a portal?
Sometimes, technically; whether it is permitted depends on the agency, portal, account and purpose. A script can interact with visible form controls, attach files and move between pages. The agency’s terms determine whether that route is allowed, and the portal’s own process determines when a filing is actually complete.
HM Revenue & Customs’ policy page, published 27 May 2026, says: “HMRC’s current policy under the existing Government Gateway Terms and Conditions is that automation tools must not be used to enter data into or navigate Government Gateway.” HMRC describes automation in this context as including browser automation, screen scraping, scripted sign-in and robotic process automation. The page separately says the restriction does not apply to APIs designed for software applications to submit information directly to HMRC.
That is a UK Government Gateway rule, not a universal rule for government portals. Do not infer that a different agency permits browser automation—or offers an API—because HMRC does. Before writing code, check the target agency’s current terms, technical guidance and prescribed routes for software integrations and representatives.
Recommended Free Tools
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Browser automation and agency APIs are different routes
A browser script operates the portal much as a person would: it finds controls, fills fields and selects files. An agency-designed API is an integration route intended for software to exchange data directly. Either approach still depends on the agency’s rules and the filer’s authority. An API is not automatically available, and using one does not remove the need to follow its authentication, validation and receipt procedures.
Compare routes on whether the agency explicitly permits them, whether documentation is official and current, whose account is being accessed, how credentials or session material are protected, what receipt or status comes back, and whether the route supports the required documents and validations. If the rules are unclear, ask the agency or use its published manual process rather than treating silence as permission.
Confirm account authority before handling credentials
Use only an account and access route you are authorized to use. HMRC warns third parties not to use sign-in details that do not belong to them. Its policy says authorized tax agents may access client data only where permission has been granted and through the prescribed Agent Services Account. Do not collect a client’s password or repurpose credentials to make automation convenient.
India’s Income Tax Department likewise makes users responsible for the secrecy, confidentiality and security of portal credentials. For any portal, establish who owns the account, what the filer has authorized, which representative mechanism the agency requires, and who may review or submit the filing. A technical ability to sign in is not proof of authority.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesProtect browser state as a secret
Playwright’s authentication guidance warns that saved browser state can contain cookies and headers capable of impersonating an account. Treat state files, access tokens, passwords and session material as secrets: limit access, avoid unnecessary persistence, keep them out of source control and remove them when no longer needed. These are security precautions, not a claim that a particular agency endorses a specific storage design.
Do not place credentials in source code, logs, screenshots, issue reports or shared test artifacts. Keep an automation account separate from ordinary personal access where the agency provides an authorized route for that purpose. Never try to work around CAPTCHA, multifactor authentication or other access controls; use the portal’s approved process when a human check is required.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Check browser support and portal requirements
There is no single browser answer for all filing systems. The U.S. Executive Office for Immigration Review says its Respondent Access Portal works with major browsers and works best with Microsoft Edge and Google Chrome; it also says the portal can be used on mobile devices. South Africa’s Revenue Service says Chrome, Edge and Safari continue to work for its migrated HTML5 forms.
Static compatibility lists can age quickly. India’s Income Tax Department page lists Chrome 88–90, Edge 88–90, Firefox 86–88 and Opera 66–68, and says JavaScript and cookies are needed for transactions. Those listed versions are historical guidance, not a recommendation to install old browsers. Check the live portal instructions immediately before implementation or filing.
Free tools Windows power users keep installed
One-click scans. No signup required.
Requirements may also include security protocols, not only browser brands. Canada Revenue Agency guidance for Corporation Internet Filing requires TLS 1.2 or higher and advises users to keep credentials confidential. Confirm the exact service’s requirements, supported browser versions, JavaScript and cookie needs, device limitations, file restrictions and maintenance notices. Do not disable browser protections just to force a script to proceed.
Build a cautious Playwright workflow
Playwright recommends locators based on user-facing roles and labels. Its locators support auto-waiting and retry behavior, and its test guidance says actions wait for actionability checks and assertions wait for expected conditions. This can reduce brittle fixed pauses, but it cannot make an unauthorized workflow permissible or verify that the information entered is legally correct.
The following Node.js example is a non-submitting pattern for an already-authorized portal session. Adapt labels, file paths and the visible review step only after checking the agency’s instructions. It deliberately stops for a person to verify the review page rather than pressing a final submit button. It does not automate sign-in, evade an access check or assert that a filing is complete.
import { chromium, expect } from '@playwright/test';
const portalUrl = process.env.PORTAL_URL;
const attachmentPath = process.env.ATTACHMENT_PATH;
if (!portalUrl || !attachmentPath) {
throw new Error('Set PORTAL_URL and ATTACHMENT_PATH first.');
}
const browser = await chromium.launch({ headless: false });
const context = await browser.newContext();
const page = await context.newPage();
try {
await page.goto(portalUrl, { waitUntil: 'domcontentloaded' });
// Use only an account and workflow you are authorized to access.
// Complete sign-in manually if the portal requires it.
await expect(page.getByRole('heading', { name: /filing/i })).toBeVisible();
await page.getByLabel('Reference number').fill('REPLACE_WITH_VERIFIED_VALUE');
await page.getByLabel('Description').fill('REPLACE_WITH_REVIEWED_TEXT');
await page.getByLabel('Supporting document').setInputFiles(attachmentPath);
await expect(page.getByText(/uploaded|attached/i)).toBeVisible();
await page.getByRole('button', { name: /review/i }).click();
await expect(page.getByRole('heading', { name: /review/i })).toBeVisible();
console.log('Review page reached. Verify the details and complete any permitted final step manually.');
} finally {
await context.close();
await browser.close();
}
Replace example labels with the actual accessible names shown by the authorized portal. The sample’s generic text values are intentionally not filing data. Validate every field against the source documents and the filer’s instructions before progressing. For a production workflow, make review, authorization and the agency’s final confirmation requirements explicit rather than silently converting this example into an unattended submitter.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Why labels and assertions matter
A locator such as getByLabel('Supporting document') describes a control the user can identify. A brittle script may instead depend on a generated CSS class or a control’s current position in the page. If the portal changes its layout, a positional selector can target the wrong item without revealing the mistake.
Use an assertion after navigation or an action to confirm the intended next state is visible. Avoid arbitrary sleep calls as proof that a page loaded: fixed delays can be too short on a slow response and waste time on a fast one. Playwright’s waiting behavior helps synchronize interactions with page state, but assertions should check meaningful portal content, not merely that a button was clicked.
Role-based locators can reflect how users and assistive technology perceive controls; they are not an accessibility audit or a conformance test. Playwright explicitly cautions that using role locators does not establish accessibility. The eCourts e-Filing accessibility statement describes features such as keyboard navigation, associated form labels, structured headings and table headers, and file type and size information. Portal quality and automation compatibility are separate questions.
Prepare attachments to the portal’s rules
Read the target service’s instructions for accepted formats, size limits, naming, page order and document quality before uploading. Playwright’s setInputFiles can assign file paths or in-memory data to a file input; it does not make an unsupported or unreadable file acceptable.
For its own e-Filing attachments, India’s Income Tax Department recommends PDF scans at 300 DPI in black and white, original documents, A4 or Letter paper, and logically ordered multipage documents. It advises against read/write or password-protected files and warns about faint, faded, smudged, clipped or hard-to-read scans. Those are instructions for that service, not universal settings for every portal. Follow the actual portal’s current directions if they differ.
If you need to digitize paper evidence, a document scanner is one possible way to create a PDF; the agency guidance supports preparing scans, not buying a particular device or brand. Inspect the resulting file yourself: confirm every page is present and legible, the orientation is correct, and sensitive material is included only when required.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Verify the filing status, not just the upload
An attachment appearing in a form is not necessarily a submitted filing, and a submitted filing may still require review. EOIR’s Respondent Access Portal instructions describe uploading a document, submitting it for staff review, and receiving an email stating acceptance or rejection. EOIR says the electronic filing process is complete once the document is accepted.
India’s Income Tax Department e-Proceedings manual gives a different example of confirmation: after successful submission, a message displays a Transaction ID and Acknowledgment Number, with an email sent to the registered address. The precise evidence varies by portal, so identify it in advance: a receipt, acknowledgment number, accepted status, email or later decision notice.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →- Record the final status and any transaction, receipt or acknowledgment identifier.
- Save the agency’s confirmation in the filer’s approved records location.
- Check the portal or registered email for an acceptance, rejection or request for correction when the process includes review.
- Do not report completion merely because a script reached a review page, the upload appeared, or a click returned without an error.
Troubleshoot common failures safely
The portal rejects the browser or page controls do not load
Check the portal’s current compatibility instructions, required JavaScript and cookie settings, security protocol, and any service notice. Try a supported browser version before changing security settings. A compatibility list for a different portal—or an old list for this one—is not a reliable fix.
A locator times out or matches the wrong control
The page may not have reached the expected state, the accessible label may have changed, or more than one control may match. Inspect the visible page manually, confirm the control’s current label and role, and make the locator specific enough to identify the intended field. Add an assertion for the expected heading or review state. Do not “fix” a timeout by adding a long fixed delay without diagnosing the cause.
The attachment fails or is unreadable
Check the exact file type, size and protection rules published by the portal; inspect the scan for missing or clipped pages and readability. A file input accepting a path does not mean the server accepted the file. Confirm that the portal shows the attachment and any validation result before proceeding.
The script stops at sign-in or an additional security check
Use the agency’s authorized sign-in and verification process. Do not capture another person’s credentials, reuse a client’s session without permission, or bypass a human or multifactor check. If the workflow cannot proceed under the portal’s rules, use its supported manual or official integration route.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallBest Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
The page says submitted, but there is no clear receipt
Do not infer success from the browser action alone. Check the portal’s instructions for its confirmation location, then look for the transaction ID, acknowledgment, email or status update it specifies. If confirmation is missing, follow the agency’s support or filing-status process before attempting a duplicate submission.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server, not a filing service: it does not enter or submit portal forms. It can capture a public page for visual documentation or monitoring where that is appropriate; do not send credentials, private filing content or authenticated case material to a screenshot service. For a permitted screenshot of a public page, the one-request example is:
ScreenshotNeo API documentation
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://www.usa.gov/ -o shot.webp
- For screenshot captures, it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture; each step can be turned off.
- Only clean screenshot captures are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and responses identify the page verdict and billing status in headers.
- An MCP server provides
take_screenshot,get_page_infoandcapture_pdftools for Claude, Cursor and other MCP clients. - The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Every feature is on every plan.
Those capabilities are for screenshots, not filing workflow automation. See ScreenshotNeo, or sign up free for 1,000 screenshots a month with no card.
Frequently Asked Questions
Can a successful Playwright click be used as the filing receipt?
No. A click confirms only that the browser action ran; use the portal’s stated receipt or final-status evidence to determine whether the filing was accepted.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Does using role-based locators prove a portal is accessible?
No. They help target controls as users perceive them, but Playwright says locators do not replace accessibility audits or conformance testing.
Quick Recap
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.

