Roku ECP输入命令和验证

Roku ECP输入命令和验证,roku,Roku,我想编写bash脚本,以便使用rokuecp和curl在roku4上自动化roku应用程序 #!/bin/bash #Press the home button curl -d '' http://192.168.1.140:8060/keypress/home #Wait for 3 seconds sleep 3 #Start GMO application curl -d '' http://192.168.1.140:8060/launch/appId1 #Wait for 3 seco

我想编写bash脚本,以便使用rokuecp和curl在roku4上自动化roku应用程序

#!/bin/bash
#Press the home button
curl -d '' http://192.168.1.140:8060/keypress/home
#Wait for 3 seconds
sleep 3
#Start GMO application
curl -d '' http://192.168.1.140:8060/launch/appId1
#Wait for 3 seconds
sleep 3
#Check active app
curl http://192.168.1.140:8060/query/active-app
如何在应用程序中进行验证或交互?例如,如果屏幕上有“Go”按钮,请单击它。或者只是验证屏幕上的任何元素

谢谢