com.sdl.selenium.extjs6.form.TextArea Maven / Gradle / Ivy
package com.sdl.selenium.extjs6.form;
import com.sdl.selenium.web.SearchType;
import com.sdl.selenium.web.WebLocator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class TextArea extends TextField {
public TextArea() {
setClassName("TextArea");
setTag("textarea");
}
public TextArea(WebLocator container) {
this();
setContainer(container);
}
public TextArea(WebLocator container, String label, SearchType ... searchTypes) {
this(container);
if (searchTypes.length == 0) {
searchTypes = new SearchType[]{SearchType.DEEP_CHILD_NODE_OR_SELF};
} else {
List types = new ArrayList<>(Arrays.asList(searchTypes));
types.add(SearchType.DEEP_CHILD_NODE_OR_SELF);
searchTypes = types.toArray(new SearchType[0]);
}
setLabel(label, searchTypes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy