Behat step for checking contents of an attribute
Bug #1791002 reported by
Rebecca Blundell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Currently there is no way to check the contents of an attribute of a page element. This would be useful, e.g. when title text shows on hover, being able to check the title text contents.
I'm thinking something along the lines of:
"element" "attribute" should contain "text"
where you pass in the DOM element, the attribute you want to check and the text. The step finds the element, calls getAttribute and compares the text with what you passed in.
Changed in mahara: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: behat |
tags: |
added: behat-dev removed: behat |
To post a comment you must log in.