com.epam.jdi.light.elements.base.BaseElement Maven / Gradle / Ivy
package com.epam.jdi.light.elements.base;
import com.epam.jdi.light.elements.interfaces.HasValue;
import com.epam.jdi.tools.func.JFunc1;
import org.openqa.selenium.*;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.Select;
import java.util.List;
public interface BaseElement extends JDIElement, HasValue {
void hover();
boolean isEnabled();
boolean isDisabled();
boolean isDisplayed();
boolean isHidden();
Point getLocation();
Dimension getSize();
Rectangle getRect();
X getScreenshotAs(OutputType outputType) throws WebDriverException;
String getAttribute(String value);
List getAllAttributes();
void setAttribute(String name, String value);
void higlight(String color);
void higlight();
String printHtml();
void show();
Select select();
void doActions(JFunc1 actions);
void actions(JFunc1 actions);
boolean wait(JFunc1 condition);
default UIElement base() {return (UIElement) this; }
}