No root required, the following task works on my S9 with 8.0.0. YMMV
Test (36)
A1: All Settings
A2: AutoInput Action
Type: Text
Value: Connections
Action : Click
Timeout (Seconds): 20
A3: AutoInput UI Query
Text: Data usage
Timeout (Seconds): 20
A4: AutoInput Action
Type: Text
Value: Data usage
Action : Click
Timeout (Seconds): 20
A5: AutoInput UI Query
App Package: com.android.settings
Text: Mobile data
Variables: android:id/switch_widget=:=switch()
Timeout (Seconds): 20
A6: AutoInput Action
Type: List
Value: 6
Action : Click
Timeout (Seconds): 20
A7: AutoInput Action
Type: Text
Value: TURN OFF
Action : Click
Timeout (Seconds): 20
If %switch(1) ~ on
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.