public final class Frame extends Object
Constructor and Description |
---|
Frame(Logger logger,
org.openqa.selenium.WebElement reference,
Location location,
RectangleSize size,
RectangleSize innerSize,
Location originalLocation,
String originalOverflow,
org.openqa.selenium.JavascriptExecutor jsExecutor) |
Modifier and Type | Method and Description |
---|---|
RectangleSize |
getInnerSize() |
Location |
getLocation() |
Location |
getOriginalLocation() |
String |
getOriginalOverflow() |
org.openqa.selenium.WebElement |
getReference() |
RectangleSize |
getSize() |
void |
hideScrollbars() |
void |
returnToOriginalOverflow() |
public Frame(Logger logger, org.openqa.selenium.WebElement reference, Location location, RectangleSize size, RectangleSize innerSize, Location originalLocation, String originalOverflow, 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.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).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 getSize()
public RectangleSize getInnerSize()
public Location getOriginalLocation()
public String getOriginalOverflow()
public void returnToOriginalOverflow()
public void hideScrollbars()
Copyright © 2018. All rights reserved.