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

com.github.tamnguyenbbt.dom.ElementInfo Maven / Gradle / Ivy

Go to download

Find jsoup elements, relative xpath queries, and Selenium web elements for web service and Selenium-based Web UI testing

There is a newer version: 1.1.3
Show newest version
package com.github.tamnguyenbbt.dom;

public class ElementInfo
{
    public String tagName;
    public String ownText;
    public int indexIfMultipleFound;
    public Condition condition;

    public ElementInfo()
    {
        indexIfMultipleFound = -1;
        condition = new Condition();
    }

    public ElementInfo(String tagName, String ownText, int indexIfMultipleFound)
    {
        this();
        this.tagName = tagName;
        this.ownText = ownText;
        this.indexIfMultipleFound = indexIfMultipleFound;
    }

    public ElementInfo(String tagName)
    {
        this();
        this.tagName = tagName;
    }

    public ElementInfo(String tagName, String ownText)
    {
        this();
        this.tagName = tagName;
        this.ownText = ownText;
    }
    
    public ElementInfo(String tagName, String ownText, boolean whereOwnTextContainingPattern)
    {
        this();
        this.tagName = tagName;
        this.ownText = ownText;
        this.condition.whereOwnTextContainingPattern = whereOwnTextContainingPattern;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy