---
title: Smart TV Testing with Remote Control Navigation
description: Use remote control navigation during your automated Smart TV testing.
source_url:
  html: https://testingbot.com/support/app-automate/smart-tv/remote-control-navigation
  md: https://testingbot.com/support/app-automate/smart-tv/remote-control-navigation.md
---

# TvOS (Apple TV 4K)

During an Appium test you can use the buttons actions to simulate remote control navigation on the Apple TV.

[Ruby](https://testingbot.com#) [Python](https://testingbot.com#) [Java](https://testingbot.com#) [NodeJS](https://testingbot.com#) [C#](https://testingbot.com#)

```ruby
driver.execute_script('mobile: pressButton', { name: 'down' })
driver.execute_script('mobile: pressButton', { name: 'select' })
```

```javascript
await driver.execute('mobile: pressButton', { name: 'down' });
await driver.execute('mobile: pressButton', { name: 'select' });
```

```python
driver.execute_script('mobile: pressButton', {'name': 'down'})
driver.execute_script('mobile: pressButton', {'name': 'select'})
```

```java
driver.executeScript("mobile: pressButton", Map.of("name", "down"));
driver.executeScript("mobile: pressButton", Map.of("name", "select"));
```

```csharp
driver.ExecuteScript("mobile: pressButton", new Dictionary<string, string> { { "name", "down" } });
driver.ExecuteScript("mobile: pressButton", new Dictionary<string, string> { { "name", "select" } });
```

The following buttons are available:

| Button Name | Behaviour |
| --- | --- |
| Home | Return to the home screen. |
| Menu | Return to the previous operation or screen. In the context of tvOS, it works as a traditional back button. |
| Select | Select the item with the current focus. |
| Up | Move the focus upward in the UI. |
| Down | Move the focus downward in the UI. |
| Left | Move the focus left in the UI. |
| Right | Move the focus right in the UI. |
| Play/Pause | Control media playback. Play/Pause is a toggle. |

### Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new) [Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
