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

com.sdl.selenium.web.IWebLocator 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)

There is a newer version: 20.08.432.0_b2d2a09
Show newest version
package com.sdl.selenium.web;

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);

    boolean isElementPresent();

    int size();

    boolean isVisible();

    boolean waitToRender();

    boolean waitToRender(final long millis);

    boolean ready();

    boolean ready(int seconds);

    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 setName(final String name);

     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);

     T setRenderMillis(final long renderMillis);

     T setActivateSeconds(final int activateSeconds);

     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