Added waitForText before clicking

Clicks sometimes can not be completed when running on Jenkins