Removed extra wait in the methods waitandgetbyselector and getuielementbyselector