I am working on automation of an app and there is as per requirement for andriod device need to be automated using UiAutomator2.I have not worked on this tool anytime.I have worked on Appium earlier.It will be helpful if anyone can share the sample script as i don’t know how to pass locators and set desired capabilities.Thanks in advance!!