Class Target
- java.lang.Object
-
- com.applitools.eyes.selenium.fluent.Target
-
public class Target extends Object
-
-
Constructor Summary
Constructors Constructor Description Target()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SeleniumCheckSettings
frame(int index)
Specify the target as a frame.static SeleniumCheckSettings
frame(String frameNameOrId)
Specify the target as a frame.static SeleniumCheckSettings
frame(org.openqa.selenium.By by)
Specify the target as a frame.static SeleniumCheckSettings
frame(org.openqa.selenium.WebElement webElement)
Specify the target as a frame.static SeleniumCheckSettings
region(com.applitools.eyes.Region region)
Specify the target as a region.static SeleniumCheckSettings
region(TargetPathLocator targetPathLocator)
Specify the target as a region.static SeleniumCheckSettings
region(org.openqa.selenium.By by)
Specify the target as a region.static SeleniumCheckSettings
region(org.openqa.selenium.WebElement webElement)
Specify the target as a region.static SeleniumCheckSettings
window()
Specify the target as window.
-
-
-
Method Detail
-
window
public static SeleniumCheckSettings window()
Specify the target as window.- Returns:
- the check settings
-
region
public static SeleniumCheckSettings region(com.applitools.eyes.Region region)
Specify the target as a region.- Parameters:
region
- the region to capture.- Returns:
- the check settings
-
region
public static SeleniumCheckSettings region(org.openqa.selenium.By by)
Specify the target as a region.- Parameters:
by
- the By selector of the region to capture.- Returns:
- the check settings
-
region
public static SeleniumCheckSettings region(org.openqa.selenium.WebElement webElement)
Specify the target as a region.- Parameters:
webElement
- the WebElement of the region to capture.- Returns:
- the check settings
-
region
public static SeleniumCheckSettings region(TargetPathLocator targetPathLocator)
Specify the target as a region. (direct implementation)- Parameters:
targetPathLocator
- the target path locator to capture.- Returns:
- the check settings
-
frame
public static SeleniumCheckSettings frame(org.openqa.selenium.By by)
Specify the target as a frame.- Parameters:
by
- the By selector of the frame.- Returns:
- the check settings
-
frame
public static SeleniumCheckSettings frame(String frameNameOrId)
Specify the target as a frame.- Parameters:
frameNameOrId
- the frame's name or id.- Returns:
- the check settings
-
frame
public static SeleniumCheckSettings frame(int index)
Specify the target as a frame.- Parameters:
index
- the index of the frame.- Returns:
- the check settings
-
frame
public static SeleniumCheckSettings frame(org.openqa.selenium.WebElement webElement)
Specify the target as a frame.- Parameters:
webElement
- WebElement representation of the frame.- Returns:
- the check settings
-
-