mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #54132
[Bug 1791002] Re: Behat step for checking contents of an attribute
** Tags removed: behat
** Tags added: behat-dev
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1791002
Title:
Behat step for checking contents of an attribute
Status in Mahara:
Confirmed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1791002/+subscriptions
References