added the waitForInvisibilityOfElement method