Purpose
Sign into an existing account used by www.autofinancenews.net and confirm that the target site's account page recognizes the authenticated session.
When to Use
Use when the caller provides credential aliases for an existing account and needs an authenticated Auto Finance News session. Do not use for account creation, password reset, or registration.
Workflow
- Navigate directly to
https://www.autofinancenews.net/my-account/. - If a consent banner is present, activate
button#hs-eu-decline-button; if the banner remains, retry once. - If the page exposes the local login form, resolve the supplied credential aliases through the secure credential mechanism, fill
input#usernamewith the username alias andinput#passwordwith the password alias, then activatebutton[name='login']. - If the local form is absent or redirects to Reuters authentication, navigate directly to
https://www.reuters.com/account/sign-in/?redirect=https%3A%2F%2Fwww.reuters.com%2F. - Resolve the supplied credential aliases through the secure credential mechanism; never expose credential values in the workflow or output.
- On the Reuters flow, fill
input#emailwith the email alias and activate the firstbutton[data-testid='TextButton']to continue. - After the email step advances, fill
input#passwordwith the password alias and activatebutton[data-testid='TextButton']to submit. - If either login flow presents an interactive anti-bot challenge, solve it using the browser's challenge-handling capability and wait for authentication to complete.
- Navigate directly to
https://www.autofinancenews.net/my-account/. - In one page evaluation on the loaded account page, run:
(() => {
const body = document.body?.innerText || "";
const controls = [...document.querySelectorAll("a,button")]
.map((e) => (e.innerText || e.getAttribute("aria-label") || "").trim())
.filter(Boolean);
const evidence = controls.filter((t) =>
/log\s*out|sign\s*out|my\s*account|account/i.test(t),
);
return {
url: location.href,
loggedIn:
/log\s*out|sign\s*out/i.test(controls.join(" ")) ||
/welcome|account details|my account/i.test(body),
evidence: evidence.slice(0, 10),
};
})();Site-Specific Gotchas
- Auto Finance News may expose a local login form at
/my-account/with#username,#password, andbutton[name='login']; use this direct path when available. - A consent banner may block the local form. Dismiss
button#hs-eu-decline-button, retrying once if the banner is duplicated or re-rendered. - Authentication may instead be handled on
www.reuters.com; use the Reuters sign-in URL when the local form is unavailable or redirects there. - The Reuters sign-in flow is multi-stage: submit the email before the password field becomes available.
- An anti-bot challenge may appear after login submission; allow it to complete before verifying the target site.
- Use credential aliases only; do not hardcode, print, or return credential values.
- Treat the account-page evaluator's
loggedInresult as the verification signal, withevidenceretained for diagnosis if the session is not recognized.
Expected Output
A result containing the final account-page URL, a boolean loggedIn status, and short DOM-derived evidence showing whether the authenticated session is recognized. Credentials and tokens must not be included.