How can perform a specific app action in Automate LLamaLab on Android ?

901 views
Skip to first unread message

Johnny Quest

unread,
Mar 2, 2022, 3:27:52 PM3/2/22
to Automate
I'm using a smart home app. First button opens a gate, second opens a gate. How can I click one of them? Or know which activity class is responsible for that?Screenshot_2022-03-02-21-19-22-443_com.hikvision.hikconnect.jpg

Henrik "The Developer" Lindqvist

unread,
Mar 3, 2022, 5:46:23 AM3/3/22
to Automate
If you for the App start block doesn't seem to list any activity class that seems related, a way to display it as you're using the device is to make s simple test flow with just an App in foreground block and a Toast show block that displaying the foreground activity class as you navigate around.
Once you've found the activity class, a flow the clock the button would be something like
  1. Flow beginning
  2. App start: use the "pick activity" button then choose the activity class you find, within the app in question
  3. Delay
  4. Interact: use the "record interaction" button to generate the XPath for the button
Reply all
Reply to author
Forward
0 new messages