com.atlassian.confluence.it.jsoup
Class JSoupFinder

java.lang.Object
  extended by com.atlassian.confluence.it.jsoup.JSoupFinder
All Implemented Interfaces:
java.lang.Iterable<JSoupFinder>

public class JSoupFinder
extends java.lang.Object
implements java.lang.Iterable<JSoupFinder>

Finds elements on page.

Since:
v4.3

Method Summary
 JSoupFinder byAttribute(java.lang.String attributeName, java.lang.String attrValue)
           
 JSoupFinder byCellType(java.lang.String type)
           
 JSoupFinder byClassName(java.lang.String className)
           
 JSoupFinder byCss(java.lang.String cssSelector)
           
 JSoupFinder byDataAttribute(java.lang.String attributeName, java.lang.String attrValue)
           
 JSoupFinder byId(java.lang.String id)
           
 JSoupFinder byTagName(java.lang.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()
           
 java.util.Iterator<JSoupFinder> iterator()
           
 boolean singleExists()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(java.lang.String cssSelector)

byTagName

public JSoupFinder byTagName(java.lang.String tagName)

byClassName

public JSoupFinder byClassName(java.lang.String className)

byId

public JSoupFinder byId(java.lang.String id)

byAttribute

public JSoupFinder byAttribute(java.lang.String attributeName,
                               java.lang.String attrValue)

byDataAttribute

public JSoupFinder byDataAttribute(java.lang.String attributeName,
                                   java.lang.String attrValue)

byCellType

public JSoupFinder byCellType(java.lang.String type)

context

public org.jsoup.nodes.Document context()

size

public int size()

get

public JSoupFinder get(int i)

iterator

public java.util.Iterator<JSoupFinder> iterator()
Specified by:
iterator in interface java.lang.Iterable<JSoupFinder>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.