Support for waitForNotVisible
Removed unused semicolons and parentheses