Cannot click on a web element in Chrome (possible when Selendroid is used)

Hi, I am facing the same issue and context switch does not help (infact on context switch to NATIVE_APP context i get org.openqa.selenium.NoSuchElementException). Code is pretty straightforward as below. The test passes successfully but click actually never happens.

I could make out for Appium logs that element is located and click request is passed (highlighted in appium logs below). Is this an issue with Appium or Chromedriver? How can i handle this?

Code
@BeforeTest
public void beforeTest() throws MalformedURLException{
capabilities = new DesiredCapabilities();
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“deviceName”, “Android”);
capabilities.setCapability(“browserName”, “Chrome”);
capabilities.setCapability(“newCommandTimeout”, 60);
driver = new AndroidDriver(new URL(“http://localhost:4723/wd/hub”), capabilities);
}

@Test
public void test() throws InterruptedException{
    driver.get("testurl");
    Thread.sleep(10000);
    
    driver.findElement(By.xpath("//input[@name='userName']")).sendKeys("testvk1");
    driver.findElement(By.xpath("//input[@name='password']")).sendKeys("test123");
    
    driver.findElement(By.id("button-1041")).click();
}

** Relevant Appium console logs**

info: → POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element {“using”:“xpath”,“value”:“//input[@name=‘password’]”}
info: JSONWP Proxy: Proxying [POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element] to [POST http://127.0.0.1:9515/wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element] with body: {“using”:“xpath”,“value”:“//input[@name=‘password’]”}
info: JSONWP Proxy: Got response with status 200: {“sessionId”:“0d48461740583fb4b7e0160a88e55c21”,“status”:0,“value”:{“ELEMENT”:“0.9904485686789031-2”}}
info: JSONWP Proxy: Replacing sessionId 0d48461740583fb4b7e0160a88e55c21 with 0d48461740583fb4b7e0160a88e55c21
info: ← POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element 200 173.860 ms - 102
info: → POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-2/value {“id”:“0.9904485686789031-2”,“value”:[“test123”]}
info: JSONWP Proxy: Proxying [POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-2/value] to [POST http://127.0.0.1:9515/wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-2/value] with body: {“id”:“0.9904485686789031-2”,“value”:[“test123”]}
info: JSONWP Proxy: Got response with status 200: {“sessionId”:“0d48461740583fb4b7e0160a88e55c21”,“status”:0,“value”:null}
info: JSONWP Proxy: Replacing sessionId 0d48461740583fb4b7e0160a88e55c21 with 0d48461740583fb4b7e0160a88e55c21
info: ← POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-2/value 200 719.769 ms - 72
info: → POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element {“using”:“id”,“value”:“button-1041”}
info: JSONWP Proxy: Proxying [POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element] to [POST http://127.0.0.1:9515/wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element] with body: {“using”:“id”,“value”:“button-1041”}
info: JSONWP Proxy: Got response with status 200: {“sessionId”:“0d48461740583fb4b7e0160a88e55c21”,“status”:0,“value”:{“ELEMENT”:“0.9904485686789031-3”}}
info: JSONWP Proxy: Replacing sessionId 0d48461740583fb4b7e0160a88e55c21 with 0d48461740583fb4b7e0160a88e55c21
info: ← POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element 200 149.595 ms - 102
info: → POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-3/click {“id”:“0.9904485686789031-3”}
> info: JSONWP Proxy: Proxying [POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-3/click] to [POST http://127.0.0.1:9515/wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-3/click] with body: {“id”:“0.9904485686789031-3”}
> info: JSONWP Proxy: Got response with status 200: {“sessionId”:“0d48461740583fb4b7e0160a88e55c21”,“status”:0,“value”:null}
info: JSONWP Proxy: Replacing sessionId 0d48461740583fb4b7e0160a88e55c21 with 0d48461740583fb4b7e0160a88e55c21
info: ← POST /wd/hub/session/0d48461740583fb4b7e0160a88e55c21/element/0.9904485686789031-3/click 200 352.401 ms - 72