From 2f9c88f8d89a836cd02d087fbbeb10b5e07df506 Mon Sep 17 00:00:00 2001 From: qingzt <116171689+qingzt@users.noreply.github.com> Date: Thu, 8 Jan 2026 16:49:40 +0800 Subject: [PATCH] fix: select wrong button when Attempting to bypass "Get code" (#437) --- .gitignore | 3 ++- src/browser/auth/Login.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e1fc54d..4a366f9 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ note accounts.dev.json accounts.main.json .DS_Store -.playwright-chromium-installed \ No newline at end of file +.playwright-chromium-installed +bun.lock diff --git a/src/browser/auth/Login.ts b/src/browser/auth/Login.ts index 532f4af..e3f3709 100644 --- a/src/browser/auth/Login.ts +++ b/src/browser/auth/Login.ts @@ -55,7 +55,7 @@ export class Login { totpInput: 'input[name="otc"]', totpInputOld: 'form[name="OneTimeCodeViewForm"]', identityBanner: '[data-testid="identityBanner"]', - viewFooter: '[data-testid="viewFooter"] span[role="button"]', + viewFooter: '[data-testid="viewFooter"] span[role="button"] >> nth=-1', bingProfile: '#id_n', requestToken: 'input[name="__RequestVerificationToken"]', requestTokenMeta: 'meta[name="__RequestVerificationToken"]'