Class JSoupFinder
- java.lang.Object
-
- com.atlassian.confluence.it.jsoup.JSoupFinder
-
- All Implemented Interfaces:
Iterable<JSoupFinder>
public class JSoupFinder extends Object implements Iterable<JSoupFinder>
Finds elements on page.- Since:
- 4.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSoupFinder
byAttribute(String attributeName, String attrValue)
JSoupFinder
byCellType(String type)
JSoupFinder
byClassName(String className)
JSoupFinder
byCss(String cssSelector)
JSoupFinder
byDataAttribute(String attributeName, String attrValue)
JSoupFinder
byId(String id)
JSoupFinder
byTagName(String tagName)
org.jsoup.nodes.Document
context()
org.jsoup.select.Elements
elements()
boolean
exists()
org.jsoup.nodes.Element
first()
JSoupFinder
get(int i)
boolean
hasAny()
boolean
hasOne()
Iterator<JSoupFinder>
iterator()
boolean
singleExists()
int
size()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
hasAny
public boolean hasAny()
-
exists
public boolean exists()
-
singleExists
public boolean singleExists()
-
hasOne
public boolean hasOne()
-
elements
public org.jsoup.select.Elements elements()
-
first
public org.jsoup.nodes.Element first()
-
byCss
public JSoupFinder byCss(String cssSelector)
-
byTagName
public JSoupFinder byTagName(String tagName)
-
byClassName
public JSoupFinder byClassName(String className)
-
byId
public JSoupFinder byId(String id)
-
byAttribute
public JSoupFinder byAttribute(String attributeName, String attrValue)
-
byDataAttribute
public JSoupFinder byDataAttribute(String attributeName, String attrValue)
-
byCellType
public JSoupFinder byCellType(String type)
-
context
public org.jsoup.nodes.Document context()
-
size
public int size()
-
get
public JSoupFinder get(int i)
-
iterator
public Iterator<JSoupFinder> iterator()
- Specified by:
iterator
in interfaceIterable<JSoupFinder>
-
-