You are here

public function NodeElement::isSelected in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Element/NodeElement.php \Behat\Mink\Element\NodeElement::isSelected()

Checks whether current node is selected if it's a option field.

Calling this method on any other elements is not allowed.

Return value

Boolean

File

vendor/behat/mink/src/Element/NodeElement.php, line 247

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function isSelected() {
  return (bool) $this
    ->getDriver()
    ->isSelected($this
    ->getXpath());
}