My company is asking me to automate Fire TV . If it is not possible on Appium then use espresso.
Please help me out of this.
created
May '16
last reply
Jan '19
- 22
replies
- 4.8k
views
- 10
users
- 2
likes
- 6
links
My company is asking me to automate Fire TV . If it is not possible on Appium then use espresso.
Please help me out of this.
Can you paste a copy of your Appium logs? You can paste a copy of your logs with Github Gist11 or Pastebin5.
Can you also post the Android API level of your device? Connect your TV with adb, and then run adb shell getprop ro.build.version.sdk
. Uiautomator should be available for devices running API 17 and newer; older devices have to fall back to using Selendroid.
It's also possible that Amazon might have heavily altered their version of Android and stripped out Uiautomator. I hope they don't do that, though, because that's just a waste of resources for no practical benefit.
I'm still not sure what you're trying to do exactly, but if you want to take a screenshot, you can use adb and your device's shell to help you grab a screenshot: http://developer.android.com/tools/help/shell.html#screencap12 However, since you're using Appium, you also have the option to take a screenshot using the getScreenshotAs5 method.
It also sounds like you're trying to retrieve a copy of the XML page source as a separate problem. You can use uiautomator's (accessed through the device's shell) dump subcommand to get an output of the UI in XML representation, but you have a better option through Appium by using the getPageSource4 method.
For that, I'm not too sure about. Try checking the logcat logs to see if they provide any hint to what's going on when you take a UI snapshot. Alternatively, you can also try using adb shell screencap10 to try manually retrieving a screenshot.
@Jitu1888 : HI Jitu. Were you successfully able to automate the fire tv app. If so can you please share the steps you followed and challenges you faced. Thanks!
@Jitu1888 Immediate help would be appreciated.
Would be great if you can post the steps @jaym