Skip to content

FrameScreen

Namespace: E2E

public sealed class FrameScreen : Screen

The screen scope FrameLocator(string) returns. Every Screen query answers from inside the frame, and the web-only escape hatches follow it in: Locator(string) for a CSS or XPath selector on a control with no accessible name, and FrameLocator(string) for a frame nested inside this one. Upstream’s FrameScreen.

Inheritance: object → Screen

View source

public FrameScreen FrameLocator(string selector)

Creates a screen query scope inside an iframe nested in this frame.

Parameters

Name Type Description
selector string

Returns: FrameScreen

Exceptions

Type Condition
TestException INVALID_LOCATOR: <code class=“paramref”>selector</code> is empty.

View source

public Locator Locator(string selector)

Creates a web-only CSS or XPath locator inside this frame.

Parameters

Name Type Description
selector string

Returns: Locator

Exceptions

Type Condition
TestException INVALID_LOCATOR: <code class=“paramref”>selector</code> is empty.

View source