waitForDisplayedElement() can now observe arbitrary attributes