fix: select wrong button when Attempting to bypass "Get code" (#437)

This commit is contained in:
qingzt
2026-01-08 16:49:40 +08:00
committed by GitHub
parent 032debed62
commit 2f9c88f8d8
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -10,4 +10,5 @@ note
accounts.dev.json
accounts.main.json
.DS_Store
.playwright-chromium-installed
.playwright-chromium-installed
bun.lock

View File

@@ -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"]'