public final class Frame extends Object
Constructor and Description |
---|
Frame(com.applitools.eyes.Logger logger,
org.openqa.selenium.WebElement reference,
com.applitools.eyes.Location location,
com.applitools.eyes.RectangleSize outerSize,
com.applitools.eyes.RectangleSize innerSize,
com.applitools.eyes.Location originalLocation,
com.applitools.eyes.Region bounds,
Borders borderWidths,
com.applitools.eyes.IEyesJsExecutor jsExecutor) |
Modifier and Type | Method and Description |
---|---|
Borders |
getBorderWidths() |
com.applitools.eyes.Region |
getBounds() |
com.applitools.eyes.RectangleSize |
getInnerSize() |
com.applitools.eyes.Location |
getLocation() |
com.applitools.eyes.Location |
getOriginalLocation() |
com.applitools.eyes.RectangleSize |
getOuterSize() |
org.openqa.selenium.WebElement |
getReference() |
org.openqa.selenium.WebElement |
getScrollRootElement() |
com.applitools.eyes.Region |
getScrollRootElementInnerBounds() |
void |
hideScrollbars(org.openqa.selenium.WebDriver driver) |
void |
returnToOriginalOverflow(org.openqa.selenium.WebDriver driver) |
void |
returnToOriginalPosition(EyesSeleniumDriver driver) |
void |
setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement) |
void |
setScrollRootElementInnerBounds(com.applitools.eyes.Region sreInnerBounds) |
public Frame(com.applitools.eyes.Logger logger, org.openqa.selenium.WebElement reference, com.applitools.eyes.Location location, com.applitools.eyes.RectangleSize outerSize, com.applitools.eyes.RectangleSize innerSize, com.applitools.eyes.Location originalLocation, com.applitools.eyes.Region bounds, Borders borderWidths, com.applitools.eyes.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 com.applitools.eyes.Location getLocation()
public com.applitools.eyes.RectangleSize getOuterSize()
public com.applitools.eyes.RectangleSize getInnerSize()
public com.applitools.eyes.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(EyesSeleniumDriver driver)
public com.applitools.eyes.Region getBounds()
public Borders getBorderWidths()
public com.applitools.eyes.Region getScrollRootElementInnerBounds()
public void setScrollRootElementInnerBounds(com.applitools.eyes.Region sreInnerBounds)
Copyright © 2021. All rights reserved.