WebUI Element Class APIs

These APIs should be easy to add and would help people target element class attributes better.

WebUI.verifyElementHasClass("classname")
WebUI.verifyElementNotHasClass("classname")
WebUI.waitForElementHasClass("classname")
WebUI.waitForElementNotHasClass("classname")

Because the class attribute is a space separated collection of classnames, it would help the testing community to have a simple API set that subsumes the work of using s.contains and ! s.contains

Forum refs:

1 Like