Element
└─TraversableElement
public abstract class TraversableElement
extends Element
| Method Summary | |
|---|---|
| NodeElement|null | findById(string id) Finds element by it's id. |
| Boolean | hasLink(string locator) Checks whether document has a link with specified locator. |
| NodeElement|null | findLink(string locator) Finds link with specified locator. |
| void | clickLink(string locator) Clicks link with specified locator. |
| Boolean | hasButton(string locator) Checks whether document has a button (input[type=submit|image|button], button) with specified locator. |
| boolean | hasClass(string className) Checks whether an element has a named CSS class |
| NodeElement|null | findButton(string locator) Finds button (input[type=submit|image|button], button) with specified locator. |
| void | pressButton(string locator) Presses button (input[type=submit|image|button], button) with specified locator. |
| Boolean | hasField(string locator) Checks whether document has a field (input, textarea, select) with specified locator. |
| NodeElement|null | findField(string locator) Finds field (input, textarea, select) with specified locator. |
| void | fillField(string locator, string value) Fills in field (input, textarea, select) with specified locator. |
| Boolean | hasCheckedField(string locator) Checks whether document has a checkbox with specified locator, which is checked. |
| Boolean | hasUncheckedField(string locator) Checks whether document has a checkbox with specified locator, which is unchecked. |
| void | checkField(string locator) Checks checkbox with specified locator. |
| void | uncheckField(string locator) Unchecks checkbox with specified locator. |
| Boolean | hasSelect(string locator) Checks whether document has a select field with specified locator. |
| void | selectFieldOption(string locator, string value, Boolean multiple) Selects option from select field with specified locator. |
| Boolean | hasTable(string locator) Checks whether document has a table with specified locator. |
| void | attachFileToField(string locator, string path) Attach file to file field with specified locator. |
| Methods inherited from Behat\Mink\Element\Element | |
|---|---|
| __construct, find, findAll, getHtml, getSession, getText, has | |
public NodeElement|null findById(string id)
Finds element by it's id.
public Boolean hasLink(string locator)
Checks whether document has a link with specified locator.
public NodeElement|null findLink(string locator)
Finds link with specified locator.
public void clickLink(string locator)
Clicks link with specified locator.
public Boolean hasButton(string locator)
Checks whether document has a button (input[type=submit|image|button], button) with specified locator.
public boolean hasClass(string className)
Checks whether an element has a named CSS class
public NodeElement|null findButton(string locator)
Finds button (input[type=submit|image|button], button) with specified locator.
public void pressButton(string locator)
Presses button (input[type=submit|image|button], button) with specified locator.
public Boolean hasField(string locator)
Checks whether document has a field (input, textarea, select) with specified locator.
public NodeElement|null findField(string locator)
Finds field (input, textarea, select) with specified locator.
public void fillField(string locator, string value)
Fills in field (input, textarea, select) with specified locator.
public Boolean hasCheckedField(string locator)
Checks whether document has a checkbox with specified locator, which is checked.
public Boolean hasUncheckedField(string locator)
Checks whether document has a checkbox with specified locator, which is unchecked.
public void checkField(string locator)
Checks checkbox with specified locator.
public void uncheckField(string locator)
Unchecks checkbox with specified locator.
public Boolean hasSelect(string locator)
Checks whether document has a select field with specified locator.
public void selectFieldOption(string locator, string value, Boolean multiple)
Selects option from select field with specified locator.
public Boolean hasTable(string locator)
Checks whether document has a table with specified locator.
public void attachFileToField(string locator, string path)
Attach file to file field with specified locator.
Traversable element.