WebElementCollection
class WebElementCollection extends AbstractElementCollection implements IWebElement (View source)
Represents a list of elements.
Properties
protected string | $elementClass | Element class, that is allowed in the collection. | from AbstractElementCollection |
Methods
__construct(array $elements = array())
Initializes collection with a list of elements.
boolean
acceptElement(mixed $element)
Determines if an element can be added to a collection.
static AbstractElementCollection
fromNodeElements(array $node_elements, string $element_class = null, IPageFactory $page_factory)
Creates new collection by wrapping given array of Node elements.
boolean
isNodeElementAware(string $class_name)
Determines if class is NodeElement aware.
boolean
assertElement(mixed $element)
Checks that element's class is allowed in collection.
Expectation
shouldReceive(string $name)
No description
Details
at line 27
__construct(array $elements = array())
Initializes collection with a list of elements.
protected boolean
acceptElement(mixed $element)
Determines if an element can be added to a collection.
void
offsetSet(mixed $index, mixed $newval)
Offset to set.
static AbstractElementCollection
fromNodeElements(array $node_elements, string $element_class = null, IPageFactory $page_factory)
Creates new collection by wrapping given array of Node elements.
protected boolean
isNodeElementAware(string $class_name)
Determines if class is NodeElement aware.
protected boolean
assertElement(mixed $element)
Checks that element's class is allowed in collection.