org.seleniumhq.selenium.fluent
Class FluentWebElements

java.lang.Object
  extended by org.seleniumhq.selenium.fluent.Internal.BaseFluentWebDriver
      extended by org.seleniumhq.selenium.fluent.Internal.BaseFluentWebElement
          extended by org.seleniumhq.selenium.fluent.Internal.BaseFluentWebElements
              extended by org.seleniumhq.selenium.fluent.FluentWebElements
All Implemented Interfaces:
Iterable<FluentWebElement>, Collection<FluentWebElement>, List<FluentWebElement>
Direct Known Subclasses:
FluentSelects

public class FluentWebElements
extends Internal.BaseFluentWebElements


Nested Class Summary
 
Nested classes/interfaces inherited from class org.seleniumhq.selenium.fluent.Internal.BaseFluentWebDriver
Internal.BaseFluentWebDriver.MultipleResult, Internal.BaseFluentWebDriver.SingleResult
 
Field Summary
 
Fields inherited from class org.seleniumhq.selenium.fluent.Internal.BaseFluentWebDriver
booleanInsteadOfNotFoundException, context, delegate, monitor
 
Constructor Summary
protected FluentWebElements(org.openqa.selenium.WebDriver delegate, List<FluentWebElement> currentElements, Context context, Monitor monitor, boolean booleanInsteadOfNoSuchElement)
           
 
Method Summary
protected  org.openqa.selenium.WebElement actualFindElement(org.openqa.selenium.By by, Context ctx, org.openqa.selenium.SearchContext searchContext)
           
protected  List<org.openqa.selenium.WebElement> actualFindElements(org.openqa.selenium.By by, Context ctx)
           
 FluentWebElements clearField()
          Use this instead of clear() to clear an WebElement
 FluentWebElements click()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> objects)
           
 FluentWebElements filter(FluentMatcher matcher)
           
protected  org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by, Context ctx, org.openqa.selenium.SearchContext searchContext)
           
protected  List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by, Context ctx)
           
 FluentWebElement first(FluentMatcher matcher)
           
 FluentWebElement get(int i)
           
 TestableString getText()
           
 int indexOf(Object o)
           
 boolean isDisplayed()
           
 boolean isEmpty()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 Iterator<FluentWebElement> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<FluentWebElement> listIterator()
           
 ListIterator<FluentWebElement> listIterator(int i)
           
protected  Internal.BaseFluentWebElements newFluentWebElements(Internal.BaseFluentWebDriver.MultipleResult multiple)
           
 boolean retainAll(Collection<?> objects)
           
 FluentWebElements sendKeys(CharSequence... keysToSend)
           
 int size()
           
 List<FluentWebElement> subList(int i, int i1)
           
 FluentWebElements submit()
           
 Object[] toArray()
           
<FluentWebElement>
FluentWebElement[]
toArray(FluentWebElement[] ts)
           
 
Methods inherited from class org.seleniumhq.selenium.fluent.Internal.BaseFluentWebElements
add, add, addAll, addAll, clear, getWebElement, remove, remove, removeAll, set
 
Methods inherited from class org.seleniumhq.selenium.fluent.Internal.BaseFluentWebElement
charSeqArrayAsHumanString, makeFluentWebElements
 
Methods inherited from class org.seleniumhq.selenium.fluent.Internal.BaseFluentWebDriver
abbr, abbr, abbrs, abbrs, acronym, acronym, acronyms, acronyms, address, address, addresses, addresses, area, area, areas, areas, assertTagIs, b, b, beforeFindElement, blockquote, blockquote, blockquotes, blockquotes, bs, bs, button, button, buttons, buttons, changeTimeout, div, div, divs, divs, executeAndWrapReThrowIfNeeded, fieldset, fieldset, fieldsets, fieldsets, figure, figure, figures, figures, fixupBy, footer, footer, footers, footers, form, form, forms, forms, getPeriod, getSearchContext, h1, h1, h1s, h1s, h2, h2, h2s, h2s, h3, h3, h3s, h3s, h4, h4, h4s, h4s, header, header, headers, headers, img, img, imgs, imgs, input, input, inputs, inputs, label, label, labels, labels, legend, legend, legends, legends, li, li, link, link, links, links, lis, lis, map, map, maps, maps, nav, nav, navs, navs, newFluentWebElement, object, object, objects, objects, ol, ol, ols, ols, option, option, options, options, p, p, pre, pre, pres, pres, ps, ps, resetTimeout, retryingFindIt, retryingFindThem, select, select, selects, selects, span, span, spans, spans, table, table, tables, tables, tbody, tbody, tbodys, tbodys, td, td, tds, tds, textarea, textarea, textareas, textareas, th, th, ths, ths, title, tr, tr, trs, trs, ul, ul, uls, uls, url, wrapAssertionError, wrapRuntimeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

FluentWebElements

protected FluentWebElements(org.openqa.selenium.WebDriver delegate,
                            List<FluentWebElement> currentElements,
                            Context context,
                            Monitor monitor,
                            boolean booleanInsteadOfNoSuchElement)
Method Detail

newFluentWebElements

protected Internal.BaseFluentWebElements newFluentWebElements(Internal.BaseFluentWebDriver.MultipleResult multiple)
Overrides:
newFluentWebElements in class Internal.BaseFluentWebDriver

click

public FluentWebElements click()

clearField

public FluentWebElements clearField()
Use this instead of clear() to clear an WebElement


submit

public FluentWebElements submit()

sendKeys

public FluentWebElements sendKeys(CharSequence... keysToSend)

isSelected

public boolean isSelected()

isEnabled

public boolean isEnabled()

isDisplayed

public boolean isDisplayed()

getText

public TestableString getText()

findElement

protected final org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by,
                                                           Context ctx,
                                                           org.openqa.selenium.SearchContext searchContext)
Specified by:
findElement in class Internal.BaseFluentWebDriver

findElements

protected final List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by,
                                                                  Context ctx)
Specified by:
findElements in class Internal.BaseFluentWebDriver

actualFindElement

protected final org.openqa.selenium.WebElement actualFindElement(org.openqa.selenium.By by,
                                                                 Context ctx,
                                                                 org.openqa.selenium.SearchContext searchContext)
Specified by:
actualFindElement in class Internal.BaseFluentWebDriver

actualFindElements

protected final List<org.openqa.selenium.WebElement> actualFindElements(org.openqa.selenium.By by,
                                                                        Context ctx)
Specified by:
actualFindElements in class Internal.BaseFluentWebDriver

filter

public FluentWebElements filter(FluentMatcher matcher)

first

public FluentWebElement first(FluentMatcher matcher)

size

public int size()

isEmpty

public boolean isEmpty()

contains

public boolean contains(Object o)

iterator

public Iterator<FluentWebElement> iterator()

toArray

public Object[] toArray()

toArray

public <FluentWebElement> FluentWebElement[] toArray(FluentWebElement[] ts)

containsAll

public boolean containsAll(Collection<?> objects)

retainAll

public boolean retainAll(Collection<?> objects)

get

public FluentWebElement get(int i)

indexOf

public int indexOf(Object o)

lastIndexOf

public int lastIndexOf(Object o)

listIterator

public ListIterator<FluentWebElement> listIterator()

listIterator

public ListIterator<FluentWebElement> listIterator(int i)

subList

public List<FluentWebElement> subList(int i,
                                      int i1)


Copyright © 2013. All Rights Reserved.