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,
Region bounds,
Borders borderWidths,
IEyesJsExecutor jsExecutor) |
Modifier and Type | Method and Description |
---|---|
Borders |
getBorderWidths() |
Region |
getBounds() |
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) |
void |
returnToOriginalPosition(EyesWebDriver driver) |
void |
setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement) |
public Frame(Logger logger, org.openqa.selenium.WebElement reference, Location location, RectangleSize outerSize, RectangleSize innerSize, Location originalLocation, Region bounds, Borders borderWidths, IEyesJsExecutor 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 setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement)
public void hideScrollbars(org.openqa.selenium.WebDriver driver)
public void returnToOriginalOverflow(org.openqa.selenium.WebDriver driver)
public void returnToOriginalPosition(EyesWebDriver driver)
public Region getBounds()
public Borders getBorderWidths()
Copyright © 2020. All rights reserved.