Skip to content

ElectronWebFrame.getFrameForSelector method

ElectronWebFrame › getFrameForSelector

Unofficial

Returns the frame element in webFrame's document selected by selector.

Signature:

getFrameForSelector(selector: string): ElectronWebFrame

Parameters:

Parameter Type Description
selector string The CSS selector for the frame element.

Returns: ElectronWebFrameThe selected frame, or null if selector does not select a frame or if the frame is not in the current renderer process.