Frame.addStyleTag() method
addStyleTag(): Promise<ElementHandle<HTMLStyleElement>>
Adds a HTMLStyleElement
into the frame with the desired URL
Signature
class Frame {
addStyleTag(
options: Omit<FrameAddStyleTagOptions, 'url'>,
): Promise<ElementHandle<HTMLStyleElement>>;
}
Parameters
Parameter | Type | Description |
---|---|---|
options | Omit<FrameAddStyleTagOptions, 'url'> |
Returns:
Promise<ElementHandle<HTMLStyleElement>>
An element handle to the loaded <style>
element.
addStyleTag(): Promise<ElementHandle<HTMLLinkElement>>
Adds a HTMLLinkElement
into the frame with the desired URL
Signature
class Frame {
addStyleTag(
options: FrameAddStyleTagOptions,
): Promise<ElementHandle<HTMLLinkElement>>;
}
Parameters
Parameter | Type | Description |
---|---|---|
options |
Returns:
Promise<ElementHandle<HTMLLinkElement>>
An element handle to the loaded <link>
element.