Behat step for checking contents of an attribute

Bug #1791002 reported by Rebecca Blundell
6
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.

Tags: behat-dev
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
tags: added: behat
Steven (stevens-q)
tags: added: behat-dev
removed: behat
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.