Added :present selector
Rework of queryUntil() and waitUntil() APIs