Created
July 7, 2019 07:06
-
-
Save malvinstn/3a8843e2d9be6bc1794e7dc69c6e3b0d to your computer and use it in GitHub Desktop.
Sample robo script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810695346, | |
"replacementText": "", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "androidx.appcompat.widget.AppCompatEditText", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/username", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.constraintlayout.widget.ConstraintLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.appcompat.widget.ContentFrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "android:id/content", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_TEXT_CHANGED", | |
"timestamp": 1561810701547, | |
"replacementText": "myusername", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "androidx.appcompat.widget.AppCompatEditText", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/username", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.constraintlayout.widget.ConstraintLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.appcompat.widget.ContentFrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "android:id/content", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_TEXT_CHANGED", | |
"timestamp": 1561810707923, | |
"replacementText": "password", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "androidx.appcompat.widget.AppCompatEditText", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "com.malvinstn.myapplication:id/password", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.constraintlayout.widget.ConstraintLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.appcompat.widget.ContentFrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "android:id/content", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810729044, | |
"replacementText": "Sign in or register", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "com.google.android.material.button.MaterialButton", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 2, | |
"resourceId": "com.malvinstn.myapplication:id/login", | |
"contentDescription": "", | |
"text": "Sign in or register" | |
}, | |
{ | |
"className": "androidx.constraintlayout.widget.ConstraintLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.appcompat.widget.ContentFrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "android:id/content", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810738093, | |
"replacementText": "", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "android.widget.LinearLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 2, | |
"resourceId": "", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.recyclerview.widget.RecyclerView", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "com.malvinstn.myapplication:id/recycler", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.coordinatorlayout.widget.CoordinatorLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/fruitlist", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810743247, | |
"replacementText": "", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "com.google.android.material.floatingactionbutton.FloatingActionButton", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 3, | |
"resourceId": "com.malvinstn.myapplication:id/button_add", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.coordinatorlayout.widget.CoordinatorLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "android.widget.FrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810748382, | |
"replacementText": "Checkout", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "com.google.android.material.button.MaterialButton", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 1, | |
"resourceId": "com.malvinstn.myapplication:id/snackbar_action", | |
"contentDescription": "", | |
"text": "Checkout" | |
}, | |
{ | |
"className": "com.google.android.material.snackbar.SnackbarContentLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "com.google.android.material.snackbar.Snackbar$SnackbarLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 4, | |
"resourceId": "", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810753539, | |
"replacementText": "", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": false, | |
"elementDescriptors": [ | |
{ | |
"className": "com.google.android.material.floatingactionbutton.FloatingActionButton", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 3, | |
"resourceId": "com.malvinstn.myapplication:id/pay", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "androidx.coordinatorlayout.widget.CoordinatorLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/fruitlist", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "android.widget.FrameLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "com.malvinstn.myapplication:id/container", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
}, | |
{ | |
"eventType": "VIEW_CLICKED", | |
"timestamp": 1561810761084, | |
"replacementText": "OK", | |
"actionCode": -1, | |
"delayTime": 0, | |
"canScrollTo": true, | |
"elementDescriptors": [ | |
{ | |
"className": "com.google.android.material.button.MaterialButton", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 3, | |
"resourceId": "android:id/button1", | |
"contentDescription": "", | |
"text": "OK" | |
}, | |
{ | |
"className": "androidx.appcompat.widget.ButtonBarLayout", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 0, | |
"resourceId": "", | |
"contentDescription": "", | |
"text": "" | |
}, | |
{ | |
"className": "android.widget.ScrollView", | |
"recyclerViewChildPosition": -1, | |
"adapterViewChildPosition": -1, | |
"groupViewChildPosition": 3, | |
"resourceId": "com.malvinstn.myapplication:id/buttonPanel", | |
"contentDescription": "", | |
"text": "" | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment