How to

How to loop through a list

Hello guys,

My goal is to click on a line in a list, perform actions, go back and perform the same actions on the following list.

Currently my code:

DM (4)
A1: AutoInput Action [
Configuration:
Type: List

Value: 2
Action : Click
Timeout (Seconds):20

A2: AutoInput Action [
Configuration:
Type: Id

Value: com.instagram.android:id/row_thread_composer_edittext
Action : Click
Timeout (Seconds):20

A3: AutoInput Action [
Configuration:
Type: Focus
Text to Write : hello
Action : Write
Timeout (Seconds):20

A4: AutoInput Action [
Configuration:
Type: Text

Value: Send
Action : Click
Timeout (Seconds):20

A5: AutoInput Action [
Configuration:
Type: Id

Value: com.instagram.android:id/action_bar_button_back
Action : Click
Timeout (Seconds):20 ]

A1 has a value of 2. I would like to loop and increment 1 up to value = 9