All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sdl.selenium.web.WebLocatorExecutor Maven / Gradle / Ivy

Go to download

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 com.sdl.selenium.utils.config.WebLocatorConfig;
import org.openqa.selenium.*;

import java.time.Duration;
import java.util.List;

public interface WebLocatorExecutor {

    boolean click(WebLocator el);

    boolean clickAt(WebLocator el);

    boolean doubleClickAt(WebLocator el);

    boolean submit(WebLocator el);

    boolean clear(WebLocator el);

    boolean sendKeys(boolean showLog, WebLocator el, java.lang.CharSequence... charSequences);

    boolean sendKeys(WebLocator el, java.lang.CharSequence... charSequences);

    boolean setValue(boolean showLog, WebLocator el, String value);

    boolean setValue(WebLocator el, String value);

    String getCssValue(final WebLocator el, final String propertyName);

    String getTagName(WebLocator el);

    String getAttribute(final WebLocator el, final String attribute);

    String getAttribute(final WebLocator el, final String attribute, boolean instant);

    String getAttributeId(final WebLocator el);

    String getText(WebLocator el);

    String getText(WebLocator el, boolean instant);

    String getValue(WebLocator el);

    String getValue(WebLocator el, boolean instant);

    @Deprecated
    boolean isElementPresent(WebLocator el);

    boolean isPresent(WebLocator el);

    WebElement findElement(WebLocator el);

    List findElements(WebLocator webLocator);

    @Deprecated
    WebElement waitElement(WebLocator el, final long millis, boolean showXPathLog);

    WebElement waitElement(WebLocator el, Duration duration, boolean showXPathLog);

    int size(WebLocator el);

    Point getLocation(WebLocator el);

    Dimension getSize(WebLocator el);

    Rectangle getRect(WebLocator el);

    boolean focus(WebLocator el);

    boolean mouseOver(WebLocator el);

    boolean blur(WebLocator el);

    boolean isSelected(WebLocator el);

    boolean isDisplayed(WebLocator el);

    boolean isEnabled(WebLocator el);

    String getAccessibleName(WebLocator el);

    String getAriaRole(WebLocator el);

    String getDomAttribute(WebLocator el, String name);

    String getDomProperty(WebLocator el, String name);

    SearchContext getShadowRoot(WebLocator el);

    boolean isSamePath(WebLocator el, String path);

    Object executeScript(String script, Object... objects);

    Object fireEventWithJS(WebLocator el, String eventName);

    void highlight(WebLocator el);

    boolean highlight = WebLocatorConfig.isHighlight();

    boolean download(String fileName, long timeoutMillis);

    boolean browse(WebLocator el);

    boolean upload(String filePath);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy