wd40.waitForInvisible() function