This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
23 / 23
Jan 2019

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.

C:\Users\jitu.patel>adb shell getprop ro.build.version.sdk
22

The logs look like you're successfully automating the app, but your test code might not be doing what you want it to do?

Can you paste an excerpt of your test code and explain what you want your code to do? I'm guessing you're looking for some text called "Live TV", but that text was not found.

I am able automate the device.

To get the resource id of the elements we are using UIAUTOMATOR which is present inside tools folder of sdk.

UIAUTOMATOR is not able to take the screenshot.

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.

Hi afwang,

Please find the screenshot.

Problem: I need to fetch the fire TV UI on the UIAUTOMATOR screen but it is giving error: Error taking device screenshot : null

Regards
Jitu

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.

1 year later
8 months later

@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!

In some OS version uiautomator was not working. Its similar to Android Phone Automation

17 days later
19 days later

Can you guide me how to resolve “uiautomator” issue on Amazon fire stick?

1 month later

Hi

Did you automate using Appium? Is it the same way as Appium is used for mobile automation?

6 months later

I was able to do the firestick automation of an app successfully. If you want to know the steps please let me know.

1 month later

Would you mind sending me the steps as well? Also, I’m wondering if it is required to launch appium automation with an app or is it possible to automate the whole fire tv ui across multiple apps? Does fire tv use uiautomator2 or first version?

Thanks…

Its similar to Android Automation. Connect to USB and get the UUID.