Fix for #136 Now waitForIt function also checks that element is displayed