From 135437005417e6dcaae04593242f97d9cefd4212 Mon Sep 17 00:00:00 2001 From: ewang2002 <37031713+ewang2002@users.noreply.github.com> Date: Fri, 23 Feb 2024 08:13:24 -0800 Subject: [PATCH] feat: made script work in response to new ui changes --- scripts/webregautoin/src/fns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/webregautoin/src/fns.ts b/scripts/webregautoin/src/fns.ts index 3aca8cb..03a3b22 100644 --- a/scripts/webregautoin/src/fns.ts +++ b/scripts/webregautoin/src/fns.ts @@ -146,7 +146,7 @@ export async function fetchCookies(ctx: Context, browser: puppeteer.Browser, isI await waitFor(3000); const content = await page.content(); // This assumes that the credentials are valid. - if (content.includes("Signing on Using:") && content.includes("TritonLink user name")) { + if (content.includes("Signing on using:") && content.includes("TritonLink user name")) { logNice(termLog, "Attempting to sign in to TritonLink."); // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors await page.type('#ssousername', ctx.webreg.username);