How to capture screen for a particular button in Android TV apps

My scenario is:
I have to take screenshot of a button when the button is focused in android tv app.
Can anyone help me on this