BA

    Browser Automation Silent-Failure Triage

    by GlowHalo

    1

    When a Playwright/Puppeteer/Selenium script says it worked but nothing changed, get ranked causes, probe snippets and a read-back check.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more
    BA

    Browser Automation Silent-Failure Triage

    Example session with this skill installed

    Use the Browser Automation Silent-Failure Triage on this problem (a sample I wrote).

    My Playwright script (Node, headless, Playwright 1.4x) edits a profile on our own staging site:

      await page.setInputFiles('input[type=file]', 'avatar.png');
      await page.getByRole('button', { name: 'Save' }).click();
      console.log('saved');
    

    The log prints "saved" and there is no error. Right after setInputFiles the avatar preview shows my image. After Save, the page shows a red line "Please upload an avatar photo." Reloading the page shows the old default avatar. I only watch network requests whose URL matches /api/ and I see none after Save. I already tried waitForTimeout(5000) before clicking Save (same result) and headed mode (same result). The Save button looks enabled and nothing covers it.

    • Read your context and instructions
    • Compiled the browser automation silent-failure

    Symptom

    1. Action: upload a file (setInputFiles('input[type=file]', 'avatar.png')), then click Save.

    What the script reported: both calls resolved, no error, console.log('saved') printed. (Inference: "saved" is just your own log line and proves nothing.)
    3.

    What the page/server actually shows: the preview shows the image right after setInputFiles; after Save the page shows the red line "Please upload an avatar photo."; after reload the old default avatar is back. Nothing was saved.
    4.

    Framework and runner: Playwright (Node), headless, version "1.4x" (exact version unknown); a headed run gives the same result. Proxy: unknown.
    5.

    Already tried: waitForTimeout(5000) before Save (same result); headed mode (same result). Observation: the network watcher only matches URLs containing /api/, and it saw nothing after Save. Not tried: logging all non-GET requests, checking file-input count, dispatching change.

    Note: the two tries were each a single change, so they are attributable. They rule out a plain timing race and a headless-only problem.

    Likely causes

    1. #7 setInputFiles ignored (the app never registered the file) — LIKELY — evidence: "Right after setInputFiles the avatar preview shows my image. After Save, the page shows a red line 'Please upload an avatar photo.'" The preview and the app's form state disagree, so the app's own validator says there is no file.

    #6 Upload preview without upload (multi-step upload) — LIKELY — evidence: "the avatar preview shows my image" followed by "Please upload an avatar photo." The preview may be a local client-side render, and a separate upload request may be needed before Save.
    3. #10 Hard limit or validation with no UI message / hidden validator stops the click handler — POSSIBLE — evidence: "red line ... 'Please upload an avatar photo.'" and "none [requests] after Save". Here the validator does show a message, but the effect is the one in the catalog: the save request is never sent.
    4.

    #9 Save went to a page URL, not an API URL — POSSIBLE — evidence: "I only watch network requests whose URL matches /api/ and I see none after Save." Your filter could be hiding a request to a page URL. The validation message argues against this, but it is not ruled out until you log every non-GET request.
    5. #5 No input[type=file] in the DOM / wrong input matched (#4 also applies) — POSSIBLE — evidence: the selector is a bare input[type=file]. If the page has more than one such input (or a hidden duplicate), the file may have gone to a different one than the one the form reads. Unconfirmed: you did not say how many exist.

    Not matched: #1 (not hydrated: the preview reacted, so some client JS runs), #2 (you say Save looks enabled; the validation message shows the click handler ran), #3 (you say nothing covers it; unverified by elementFromPoint, but the handler evidently fired), #8 (no redirect reported), #11 (not a toggle), #12 (no text field), #13 (not a selector/attribute problem on the Save button), #14 (no consent banner or page sequence mentioned).

    Inference note: the ranking above is inference from your description. No cause is confirmed until a probe result is in this conversation.

    Probes

    Default framework: Playwright for Node (as you use). Replace placeholders with values from your page; I have not invented any selectors.

    Probe 1 — Did anything leave the browser, and where did I land? (separates #9 from #6/#7/#10)

    Attach before the actions, with no /api/ filter.

    page.on('request', r => {
      if (r.method() !== 'GET') console.log('REQ', r.method(), r.url());
    });
    page.on('requestfailed', r => console.log('FAILED', r.method(), r.url(), r.failure()?.errorText));
    page.on('response', r => {
      if (r.request().method() !== 'GET') console.log('RES', r.status(), r.url());
    });
    
    await page.setInputFiles('input[type=file]', 'avatar.png');
    console.log('after setInputFiles: non-GET requests above (if any) = upload step');
    await page.getByRole('button', { name: 'Save' }).click();
    await page.waitForTimeout(1500);
    console.log('url:', page.url(), 'title:', await page.title());
    

    Decision rule

    • A POST/PUT/PATCH to a non-/api/ URL appears after Save: cause #9. Your filter hid it; look at the response status and body next.
    • A request appears after setInputFiles but none after Save: the upload step exists. Go to cause #6 and check the response (did it return a file id the form needs?).
    • No non-GET request at all, ever: the client-side validator stopped the handler (#10) or the app never saw the file (#7). Go to Probe 2.
    • The URL or title changed unexpectedly: cause #8 (silent redirect). Not expected here, but this costs nothing to read.

    Probe 2 — Is there exactly one file input, and does it hold the file? (separates #7 and #5)

    const info = await page.evaluate(() =>
      [...document.querySelectorAll('input[type=file]')].map((el, i) => ({
        i,
        files: el.files.length,
        name: el.files[0]?.name,
        visible: !!(el.offsetWidth || el.offsetHeight),
        disabled: el.disabled,
        name_attr: el.getAttribute('name'),
        inForm: !!el.form,
      }))
    );
    console.log(JSON.stringify(info, null, 2));
    

    Run it after setInputFiles and before clicking Save.

    Decision rule

    • More than one input, and the one holding files: 1 is not the one inside your profile form: cause #5/#4. Target the right input with a more specific locator (look up its name or the form it belongs to).
    • Exactly one input and files: 1, but the Save still says no photo: the app ignored the set files (#7). Go to Probe 3.
    • Zero inputs, or files: 0: the input was replaced or re-rendered after you set it. Set the files again after the preview appears, and re-run this probe.

    Probe 3 — Force the event (only if Probe 2 shows one input with the file; tests #7)

    await page.evaluate(() => {
      const el = document.querySelector('input[type=file]');
      el.dispatchEvent(new Event('input',  { bubbles: true }));
      el.dispatchEvent(new Event('change', { bubbles: true }));
    });
    await page.getByRole('button', { name: 'Save' }).click();
    

    Decision rule

    • Save now sends a request and the red line is gone: cause #7. The app only reacts to a manual change.
    • Same red line, still no request: the app keeps the file somewhere other than the input (for example a separate upload step, cause #6). Go back to Probe 1 and look for a request right after the file is chosen, or send me the page's relevant form markup.

    I did not give a probe for #3 or #2: you reported nothing covers the button and it looks enabled, and the validation text proves the click handler ran, so those probes would not change what you do next.

    Paste back: the console output of Probe 1, the JSON of Probe 2, and the result of Probe 3.

    Fix + read-back check

    Not yet. You have not reported a probe result and have not asked me to proceed, so naming a fix now would be guessing. Once a probe result is in the conversation, I will give the smallest fix for the confirmed cause, a read-back check that reloads the profile page in a fresh page load (or does a GET on the profile) and compares the avatar URL/size to what you uploaded, an idempotence note, and one line of residual doubt.

    browser-automation-silent-failure-triage

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Browser Automation Silent-Failure Triage helps when a Playwright, Puppeteer or Selenium script says it worked but nothing changed: the upload did not upload, the save did not save, the click did nothing.

    Paste the symptom and the Skill:

    1. Restates what the script reported versus what the page or server actually shows, and what you already tried.
    2. Matches it against a catalog of 14 known silent-failure causes (page not hydrated, disabled button, hidden overlay, wrong element matched, no file input, preview-without-upload, silent redirect, form posted to a page URL, toggle instead of add, autocomplete swallowing text, and more) and ranks them by the evidence you gave.
    3. Gives ordered probe snippets with a decision rule for each, so you find the real cause instead of guessing.
    4. Only after a probe result is in, gives the smallest fix plus a read-back check that proves the result.

    It does not run your script and does not help bypass bot protection, CAPTCHAs or login walls. Remove passwords and tokens from anything you paste.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Permissions

    Browser
    Listed1 month ago
    Updated14 days ago

    What's inside

    Frequently Asked Questions

    When a Playwright/Puppeteer/Selenium script says it worked but nothing changed, get ranked causes, probe snippets and a read-back check.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Browser Automation Silent-Failure Triage on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.