waitFor improvements
added wait for example
added isVisible example