(header)
| 584 | } |
| 585 | |
| 586 | function findOAuthCardLoginButton(header) { |
| 587 | const card = header?.closest('.card, [class*="card"]') || header?.parentElement || document; |
| 588 | const candidates = card.querySelectorAll('button.btn.btn-primary, button.btn-primary, button.btn'); |
| 589 | return Array.from(candidates).find((el) => isVisibleElement(el) && /登录|login/i.test(getActionText(el))) || null; |
| 590 | } |
| 591 | |
| 592 | function findAuthUrlElement() { |
| 593 | const candidates = document.querySelectorAll('[class*="authUrlValue"], .OAuthPage-module__authUrlValue___axvUJ'); |
no test coverage detected