Skip to content

Commit 09f2b7e

Browse files
samuelclayclaude
andcommitted
Fix UNKNOWN state on Amazon sign-in: add email field strategies for changed hint text.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2c3081f commit 09f2b7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

views/auth/view_strategies.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22

33
# View identification strategies
44
EMAIL_VIEW_IDENTIFIERS = [
5+
(AppiumBy.ID, "ap_email_login"),
6+
(
7+
AppiumBy.XPATH,
8+
"//android.webkit.WebView[@text='Amazon Sign-In']//android.widget.EditText[@hint='Enter mobile number or email']",
9+
),
510
(
611
AppiumBy.XPATH,
712
"//android.webkit.WebView[@text='Amazon Sign-In']//android.widget.EditText[@hint='Email or phone number']",
813
),
14+
(
15+
AppiumBy.XPATH,
16+
"//android.webkit.WebView[@text='Amazon Sign-In']//android.view.View[@resource-id='ap_login_form']",
17+
),
918
]
1019

1120
PASSWORD_VIEW_IDENTIFIERS = [

0 commit comments

Comments
 (0)