android / android/android-test

Web.WebInteraction<Void> Espresso UI tests in WebView does not fire change event

Open
#1,655 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### While filling the textfield with autoamation, javascript does not capture focus/blur/change events in browsers, looks like
onWebView().perform(DriverAtoms.webKeys("text_here")); does not fire the events so js unable to capture it.

### html page with editbox and js on editbox to capture input filled.

### onWebView().perform(DriverAtoms.webKeys("text_here")); should fire the change event

### As of now, it is not firing the change event

### 'androidx.test.espresso:espresso-web:3.4.0'/Android OS 12 & 13

### NA

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with androidx.test.espresso:espresso-web:3.4.0 on Android 12 or 13, using onWebView().perform(DriverAtoms.webKeys("text_here")) against an HTML editbox with JavaScript event handlers. Check whether focus, blur, and change events fire, and compare the observed behavior with the expected change event after text entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.