Skip to content

Automation IDs

Every OGPlayer control carries a stable automation identifier, identical on all platforms, so one page-object model drives your Android, iOS, web and React Native test suites. On Android they are exposed as Compose test tags (surfaced as resource-ids), on iOS as accessibilityIdentifier, and on the web as data-testid attributes; the React Native wrapper inherits them from the native SDKs. Identifiers are part of the public API surface: they are stable across releases, and separate from the localized accessibility labels.

IdentifierElement
og_playerPlayer root
og_btn_play_pausePlay / pause / replay button
og_btn_seek_backSeek-backward button
og_btn_seek_forwardSeek-forward button
og_scrub_barProgress bar
og_scrub_previewTrick-play preview
og_time_labelTime readout
og_live_chipLIVE chip
og_btn_volumeVolume button
og_volume_sliderVolume slider
og_btn_speedPlayback-speed button
og_btn_qualityVideo-quality button
og_btn_audioAudio-track button
og_btn_subtitlesSubtitle button
og_btn_fullscreenFullscreen button
og_btn_castCast button (Android)
og_btn_airplayAirPlay button (iOS)
og_menuOpen settings / track menu
og_menu_itemMenu row — repeated; query by position
og_custom_action_<n>Host custom action, in configured order (0-based)
og_overlay_<slot>Overlay slot container (og_overlay_top_startog_overlay_bottom_end)
og_titleTitle overlay
og_ratings_rowContent-rating row
og_bufferingBuffering indicator
og_btn_ad_play_pauseAd transport button
og_upnext_cardUp-next card
og_error_overlayError surface
og_btn_error_retryError retry button
IdentifierElement
og_feedFeed root
og_feed_page_<n>Feed page (0-based)
og_feed_railAction rail
og_feed_rail_action_<n>Rail action, in configured order (0-based)
og_feed_hairlineProgress hairline
og_feed_sponsored_badgeSponsored badge