FrameScreen
Namespace: E2E
public sealed class FrameScreen : ScreenThe 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.
Methods
Section titled “Methods”FrameLocator(string)
Section titled “FrameLocator(string)”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. |
Locator(string)
Section titled “Locator(string)”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. |