UIAutomator2 Code Example

Hi,

Can anybody share a code example of UIAutomator2 and also can explain the difference between working with UIAutomator and UIAutomator2 in both ways programmitically as well as structurally.

Thanks in advance!

Hi Jitender,

are you able to find the script.If yes could you please help me with sample script.
Thanks in advance