修复:在第 5 步中,优先使用可见的年龄输入框,而非隐藏的生日字段#1
Merged
Conversation
## Summary - fix Step 5 field detection to prefer visible `input[name="age"]` - stop treating hidden `input[name="birthday"]` as a birthday-mode signal - preserve birthday-mode handling for visible birthday controls ## Problem On some pages, a visible age input and a hidden birthday input coexist. The previous logic treated the hidden `input[name="birthday"]` as evidence of birthday mode, which caused Step 5 to fill birthday instead of age. ## Verification - reproduced on a page where `input[name="age"]` is visible - confirmed `input[name="birthday"]` exists but is hidden - verified Step 5 now enters the age branch and fills the age input correctly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
input[name="age"]input[name="birthday"]as a birthday-mode signalProblem
On some pages, a visible age input and a hidden birthday input coexist.
The previous logic treated the hidden
input[name="birthday"]as evidence of birthday mode, which caused Step 5 tofill birthday instead of age.
Verification
input[name="age"]is visibleinput[name="birthday"]exists but is hidden