# Mastering UI Testing for Android web forms

DevFeed: [Mastering UI Testing for Android web forms](<https://devfeed.tech/articles/mastering-ui-testing-for-android-web-forms-23704.md>)

Original publisher: [Read original article](<https://engineering.theblueground.com/mastering-ui-testing-for-android-web-forms/>)

Author: Vaios Tsitsonis

Published: 2024-01-05T11:50:19Z

Content type: tutorial

Language: en

Sources: [Blueground Engineering blog](<https://devfeed.tech/sources/blueground-engineering-blog.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [WebView](<https://devfeed.tech/topics/webview.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Forms](<https://devfeed.tech/topics/forms.md>), [Android](<https://devfeed.tech/topics/android.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [forms](<https://devfeed.tech/tags/forms.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

## AI overview

In an Android WebView form, UI tests can fill username and password fields yet leave a JavaScript-enabled submit button disabled, even though typing manually activates it. The excerpt attributes this to testing tools changing HTML input values programmatically: associated events are marked "non-trusted" for security reasons, so the form's event-driven activation logic does not run. It introduces the problem and cause, but ends while describing how the testing tool injects code; no workaround is included in the supplied text.

## Source excerpt

Yeah! We are Android engineers! 🎉 We can build almost anything by ourselves and make it run on any Android device! But sometimes we may need to use a third-party library or incorporate web-based functionality into a WebView to go fast. This can introduce challenges during UI testing.