com.sdl.selenium.web.IWebLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Testy Show documentation
Show all versions of Testy Show documentation
Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications.
(optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)
The newest version!
package com.sdl.selenium.web;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.Rectangle;
import org.openqa.selenium.WebElement;
import java.time.Duration;
import java.util.List;
public interface IWebLocator {
String getCssValue(String propertyName);
String getAttributeId();
String getAttributeClass();
String getCurrentElementPath();
/**
* @param attribute e.g. class, id
* @return String attribute, if element not exist return null.
*/
String getAttribute(String attribute);
@Deprecated
boolean isElementPresent();
boolean isPresent();
int size();
Point getLocation();
Dimension getSize();
Rectangle getRect();
WebElement findElement();
List findElements();
@Deprecated
boolean isVisible();
boolean waitToRender();
@Deprecated
boolean waitToRender(final long millis);
boolean waitToRender(Duration duration);
@Deprecated
boolean waitToRender(final long millis, boolean showXPathLog);
boolean waitToRender(Duration duration, boolean showXPathLog);
boolean ready();
@Deprecated
boolean ready(int seconds);
boolean ready(Duration duration);
boolean isEnabled();
boolean isDisplayed();
String getXPath();
T setRoot(final String root);
T setTag(final String tag);
T setId(final String id);
T setElPath(final String elPath);
T setBaseCls(final String baseCls);
T setCls(final String cls);
T setClasses(final String... classes);
T setExcludeClasses(final String... excludeClasses);
T setChildNodes(final WebLocator... childNodes);
T setChildNodes(SearchType searchType, final WebLocator... childNodes);
T setName(final String name);
T setLocalName(final String localName);
T setText(final String text, final SearchType... searchTypes);
T setSearchTextType(SearchType... searchTextTypes);
T addSearchTextType(SearchType... searchTextTypes);
// T setSearchLabelType(SearchType... searchLabelType);
T setStyle(final String style);
T setTitle(final String title, SearchType... searchTypes);
T setTemplateTitle(WebLocator titleEl);
T setElPathSuffix(final String key, final String elPathSuffix);
T setTemplateValue(final String key, final String... value);
T setTemplate(final String key, final String value);
T addToTemplate(final String key, final String value);
T setInfoMessage(final String infoMessage);
T setVisibility(final boolean visibility);
@Deprecated
T setRenderMillis(final long renderMillis);
T setRender(Duration duration);
@Deprecated
T setActivateSeconds(final int activateSeconds);
T setActivate(Duration duration);
T setContainer(WebLocator container);
T setLabel(final String label, final SearchType... searchTypes);
T setLabelTag(final String labelTag);
T setLabelPosition(final String labelPosition);
T setPosition(final int position);
T setResultIdx(final int resultIdx);
T setType(final String type);
T setAttribute(final String attribute, final String value, final SearchType... searchTypes);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy