public final class Frame extends Object
| Constructor and Description |
|---|
Frame(Logger logger,
org.openqa.selenium.WebElement reference,
Location location,
RectangleSize outerSize,
RectangleSize innerSize,
Location originalLocation,
org.openqa.selenium.JavascriptExecutor jsExecutor) |
| Modifier and Type | Method and Description |
|---|---|
RectangleSize |
getInnerSize() |
Location |
getLocation() |
Location |
getOriginalLocation() |
RectangleSize |
getOuterSize() |
org.openqa.selenium.WebElement |
getReference() |
org.openqa.selenium.WebElement |
getScrollRootElement() |
void |
hideScrollbars(org.openqa.selenium.WebDriver driver) |
void |
returnToOriginalOverflow(org.openqa.selenium.WebDriver driver) |
public Frame(Logger logger, org.openqa.selenium.WebElement reference, Location location, RectangleSize outerSize, RectangleSize innerSize, Location originalLocation, org.openqa.selenium.JavascriptExecutor jsExecutor)
logger - A Logger instance.reference - The web element for the frame, used as a reference to switch into the frame.location - The location of the frame within the current frame.outerSize - The frame element outerSize (i.e., the outerSize of the frame on the screen, not the internal document outerSize).innerSize - The frame element inner outerSize (i.e., the outerSize of the frame actual outerSize, without borders).originalLocation - The scroll location of the frame.jsExecutor - The Javascript Executor to use. Usually that will be the WebDriver.public org.openqa.selenium.WebElement getReference()
public Location getLocation()
public RectangleSize getOuterSize()
public RectangleSize getInnerSize()
public Location getOriginalLocation()
public org.openqa.selenium.WebElement getScrollRootElement()
public void hideScrollbars(org.openqa.selenium.WebDriver driver)
public void returnToOriginalOverflow(org.openqa.selenium.WebDriver driver)
Copyright © 2019. All rights reserved.