I am trying to toggle Bluetooth using AndroidviewClient. Below is part of the code. I am able to "find Bluetooth" and get the id and text also. Then I want to get get the view for ON/OFF to toggle. When I print in the below for loop, I get 3 views and one of them is the view for ON or OFF based on the current state. How to check in the for loop for this view to toggle it? Thanks for your help,
BR Srini
view = vc.findViewWithText('Bluetooth')
print "Bluetooth id :", view.getId()
print "Blutooth Text :", view.getText()
for i in view.parent.parent.children:
print str(i)