com.shaft.gui.element.internal.ElementInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.gui.element.internal;
import lombok.Getter;
import lombok.Setter;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
import org.openqa.selenium.By;
import org.openqa.selenium.Rectangle;
import org.openqa.selenium.WebElement;
import java.util.ArrayList;
import java.util.List;
public class ElementInformation {
@Setter
@Getter
private int numberOfFoundElements = 0;
@Setter
@Getter
private WebElement firstElement = null;
@Setter
@Getter
private By locator = null;
@Setter
@Getter
private String outerHTML = "";
@Setter
@Getter
private String innerHTML = "";
@Setter
@Getter
private String elementName = "";
@Setter
@Getter
private String actionResult = "";
@Setter
private String elementText = "";
public static ElementInformation fromList(List