Android device buttons

Hi
I’m creating test scripts on a Samsung Galaxy Tab 2.
How would I tell the script to press the power/sleep key on the tablet? I can only find Blackberry and Windows on the userguide.

Thanks

Please try this:

TypeText PowerButton

This key mapping, along with other Android mappings, is documented under Device Control here: http://docs.testplant.com/?q=content/device-control-0