add type casting

type of uiautomator arguments should be int rather than unicode object.