
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@dlenroc/roku-dom
Advanced tools
DOM-like representation of the app-ui
npm install @dlenroc/roku-dom
⚠️
render()must be called for synchronizing DOM with application state
import { Document } from '@dlenroc/roku-dom';
import { ECPExecutor } from '@dlenroc/roku-ecp';
import { ODCExecutor } from '@dlenroc/roku-odc';
const document = new Document({
ecp: new ECPExecutor({ address: 'http://<ip>:8060' }),
odc: new ODCExecutor({ address: 'http://<ip>:8061' }),
});
// Sync DOM
await document.render();
const element = document.cssSelect('[text="Play"]');
console.log(element?.isFocused);
Everything from Element ➕
get context(): 'ECP' | 'ODC'
set context(context: 'ECP' | 'ODC')
get fields(): Record<string, string[]>
set fields(fields: Record<string, string[]>)
get focusedElement(): Element
get isKeyboardShown(): boolean
render(): Promise<void>
get sdk(): SDK
get document(): Document
get parent(): Element | null
get parents(): Element[]
get siblings(): Element[]
get prev(): Element | null
get next(): Element | null
get children(): Element[]
get tag(): string
get path(): string
get index(): number
get attributes(): Record<string, string>
get text(): string
get bounds(): Rect | null
get isConnected(): boolean
get isFocused(): boolean
get isInFocusChain(): boolean
get isDisplayed(): boolean
isSameNode(element: Element): boolean
clear(): Promise<void>
type(text: string): Promise<void>
append(text: string): Promise<void>
select(): Promise<void>
focus(): Promise<void>
cssSelect(css: string): Element | null
cssSelect(css: string, timeoutInSeconds: number): Promise<Element | null>
cssSelectAll(css: string): Element[]
cssSelectAll(css: string, timeoutInSeconds: number): Promise<Element[]>
xpathSelect(xpath: string): Element | null
xpathSelect(xpath: string, timeoutInSeconds: number): Promise<Element | null>
xpathSelectAll(xpath: string): Element[]
xpathSelectAll(xpath: string, timeoutInSeconds: number): Promise<Element[]>
toString(): string
FAQs
DOM-like representation of the channel
We found that @dlenroc/roku-dom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.