Skip to content

NB-6 fix: support uppercase keycode input by passing metastate to Appium driver#272

Merged
thakur-patel merged 1 commit intomozarkai:mainfrom
chinmayajha:appium-fix-branch
Apr 7, 2026
Merged

NB-6 fix: support uppercase keycode input by passing metastate to Appium driver#272
thakur-patel merged 1 commit intomozarkai:mainfrom
chinmayajha:appium-fix-branch

Conversation

@chinmayajha
Copy link
Copy Markdown
Contributor

@chinmayajha chinmayajha commented Apr 3, 2026

fix(appium): correct uppercase typing using SHIFT metastate in key events

Fixes NB-6

Issue:
Enter Text Using Keyboard was not working reliably for certain inputs
(e.g., IFSC fields in MOZARK | Test Management).

Root Cause:

  • Appium driver (_press_keycode_or_type_char) sent keycodes without metastate
  • Uppercase characters were interpreted as lowercase by Android
  • IFSC field rejects lowercase input, so characters were silently ignored
  • Digits worked correctly since they don’t require SHIFT

Fix:

  • Added uppercase detection (ch.isupper())
  • Send keycode with metastate=1 to simulate SHIFT key
  • Updated logging to include metastate for better debugging

Impact:

  • Ensures accurate uppercase input via keycode typing
  • Fixes silent input failures in strict validation fields

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

@chinmayajha chinmayajha changed the title bugfix: support uppercase keycode input by passing metastate to Appium driver NB-6 fix: support uppercase keycode input by passing metastate to Appium driver Apr 3, 2026
@thakur-patel thakur-patel self-requested a review April 7, 2026 05:34
@thakur-patel thakur-patel merged commit 11ae8e6 into mozarkai:main Apr 7, 2026
8 checks passed
@chinmayajha chinmayajha deleted the appium-fix-branch branch April 7, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants