a preliminary implementation for 'input','click','refresh' and 'sleep' function