public class Frame extends Object
Modifier and Type | Field and Description |
---|---|
protected RectangleSize |
innerSize |
protected Location |
location |
protected Logger |
logger |
protected Location |
originalLocation |
protected Location |
parentScrollPosition |
protected org.openqa.selenium.WebElement |
reference |
protected RectangleSize |
size |
Constructor and Description |
---|
Frame(Logger logger,
org.openqa.selenium.WebElement reference,
Location location,
RectangleSize size,
RectangleSize innerSize,
Location parentScrollPosition,
Location originalLocation) |
Modifier and Type | Method and Description |
---|---|
RectangleSize |
getInnerSize() |
Location |
getLocation() |
Location |
getOriginalLocation() |
Location |
getParentScrollPosition() |
org.openqa.selenium.WebElement |
getReference() |
RectangleSize |
getSize() |
protected final Logger logger
protected final org.openqa.selenium.WebElement reference
protected final Location location
protected final RectangleSize size
protected final RectangleSize innerSize
protected final Location parentScrollPosition
protected final Location originalLocation
public Frame(Logger logger, org.openqa.selenium.WebElement reference, Location location, RectangleSize size, RectangleSize innerSize, Location parentScrollPosition, Location originalLocation)
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.size
- The frame element size (i.e., the size of the frame on the screen, not the internal document size).innerSize
- The frame element inner size (i.e., the size of the frame actual size, without borders).parentScrollPosition
- The scroll position the frame's parent was in when the frame was switched to.originalLocation
- The scroll location of the frame.public org.openqa.selenium.WebElement getReference()
public Location getLocation()
public RectangleSize getSize()
public RectangleSize getInnerSize()
public Location getParentScrollPosition()
public Location getOriginalLocation()
Copyright © 2017. All rights reserved.