SmartCast WebDriver
Introduction
This page is a reference for the available commands and key mappings for the SmartCast WebDriver integration.
The SmartCast WebDriver integration is written by TV Labs for the Vizio SmartCast platform. It is Appium compatible, so it can be driven from any Appium client, and it interfaces with the device using both Chromedriver and the Remote Control API.
Available Commands
All executeScript commands are proxied to a ChromeDriver instance connected to the debugger port on the device. Availability is based on what the Chromium version supports.
In addition to these proxied commands, the following commands are available for device interaction using the remote control:
| Command | Required Arguments | Description |
|---|---|---|
smartcast: pressKey | key | Press a key on the SmartCast device using the remote control. Keys without a remote control mapping return an invalid argument error. |
smartcast: enterText | text | Enters text on the SmartCast device using the remote control. |
smartcast: deviceInfo | - | Returns information about the current device, such as model information, software versions, hardware capabilities, and more. This information is retrieved from the TV Settings > Admin and Privacy > System Information > TV Information menu. |
Key Map
The following keys are available with the smartcast: pressKey command. All of them are sent over the remote control. Individual letters, numbers, and symbols are also accepted, and are sent as the literal character. To enter a longer string of text, use the smartcast: enterText command.
| Key | Description |
|---|---|
| up | Up |
| down | Down |
| left | Left |
| right | Right |
| ok | OK/Enter |
| back | Back |
| menu | Menu |
| info | Info |
| home | Home |
| smartcast | SmartCast |
| cc_toggle | CC Toggle |
| vol_up | Volume Up |
| vol_down | Volume Down |
| mute_on | Mute On |
| mute_off | Mute Off |
| mute_toggle | Mute Toggle |
| pic_mode | Picture Mode |
| pic_size | Picture Size |
| input_next | Next Input |
| ch_up | Channel Up |
| ch_down | Channel Down |
| ch_prev | Previous Channel |
| seek_fwd | Seek Forward |
| seek_back | Seek Backward |
| play | Play |
| pause | Pause |
| pow_on | Power On |
| pow_off | Power Off |
| pow_toggle | Power Toggle |
| exit | Exit |
| enter | Enter |
| space | Space |