Socket
Book a DemoInstallSign in
Socket

com.cocosw:formfiller

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.cocosw:formfiller

Android helper library to populate form fields with predefined data set

Source
mavenMaven
Version
1.0.0
Version published
Maintainers
1
Source

FormFiller

Android helper library to populate form with defined data-set

Sample

Usage

class DemoApp : Application() {
    override fun onCreate() {
        super.onCreate()
        // Enable FormFiller for debug builds only
        if (BuildConfig.DEBUG) {
            FormFiller.Builder(this)
                // Fill the form by pressing f key from external keyboard    
                .keyCode(KeyEvent.KEYCODE_F)
                // Fill the form by double tapping on ui    
                .doubleTap()
                .scenario {
                    id(R.id.username, "username")
                    id(R.id.password, "password")
                }
                .build()
        }
    }
}

Advanced usage

Define different data-set and switch between them inside the app

            FormFiller.Builder(this)
                .doubleTap()
                // Enable scenario switcher and open ui by long pressing with 2 fingers on ui
                .enableScenariosSwitcher()
                .scenario {
                    id(R.id.username, "username")
                    id(R.id.password, "password")
                }
                .scenario("Unhappy") {
                    id(R.id.username, "wrong")
                    id(R.id.password, "wrong")
                }
                .build()
//select edittext by tag name
tag("username") {
   //manipulate edit text
   it.setText(Random.toString())
}

Download

    implementation 'com.cocosw:formfiller:1.0'

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts