'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @instance='1']")).sendKeys("Hello");' used to work in UIautomator and same thing is not working in UIautomator2.
But When I use 'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @text='Password']")).sendKeys("Hello"); ' work in both.Appium version is 1.72 and uiatomator server is 0.3.0
'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @instance='1']")).sendKeys("Hello");' used to work in UIautomator and same thing is not working in UIautomator2. But When I use 'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @text='Password']")).sendKeys("Hello"); ' work in both.Appium version is 1.72 and uiatomator server is 0.3.0