Skip to main content

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:

CommandRequired ArgumentsDescription
smartcast: pressKeykeyPress a key on the SmartCast device using the remote control. Keys without a remote control mapping return an invalid argument error.
smartcast: enterTexttextEnters 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.

KeyDescription
upUp
downDown
leftLeft
rightRight
okOK/Enter
backBack
menuMenu
infoInfo
homeHome
smartcastSmartCast
cc_toggleCC Toggle
vol_upVolume Up
vol_downVolume Down
mute_onMute On
mute_offMute Off
mute_toggleMute Toggle
pic_modePicture Mode
pic_sizePicture Size
input_nextNext Input
ch_upChannel Up
ch_downChannel Down
ch_prevPrevious Channel
seek_fwdSeek Forward
seek_backSeek Backward
playPlay
pausePause
pow_onPower On
pow_offPower Off
pow_togglePower Toggle
exitExit
enterEnter
spaceSpace