Making click synchronous blocking call